commit fe54ce946c0437c037e69eddf318e1a8781c73ed
parent 275ba85595e9c78f694f10161ca7bc6840d36f76
Author: Alexx Saver <lzsaver@users.noreply.github.com>
Date: Sun, 21 Jan 2018 02:05:27 +0400
Fixed rm -rf
Notice: it is unsafe to do rm -rf ${variable}/path/* without checking the variable, quotes are also required.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git 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 && \