From fe54ce946c0437c037e69eddf318e1a8781c73ed Mon Sep 17 00:00:00 2001 From: Alexx Saver Date: Sun, 21 Jan 2018 02:05:27 +0400 Subject: [PATCH] Fixed rm -rf Notice: it is unsafe to do rm -rf ${variable}/path/* without checking the variable, quotes are also required. --- contrib/build-wine/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/build-wine/build.sh b/contrib/build-wine/build.sh index 5f00e824b..efd23bc17 100755 --- a/contrib/build-wine/build.sh +++ b/contrib/build-wine/build.sh @@ -7,10 +7,11 @@ if [ ! -z "$1" ]; then fi here=$(dirname "$0") +test -n "$here" -a -d "$here" || exit echo "Clearing $here/build and $here/dist..." -rm $here/build/* -rf -rm $here/dist/* -rf +rm "$here"/build/* -rf +rm "$here"/dist/* -rf $here/prepare-wine.sh && \ $here/prepare-pyinstaller.sh && \