Fixed rm -rf

Notice: it is unsafe to do rm -rf ${variable}/path/* without checking the variable, quotes are also required.
This commit is contained in:
Alexx Saver 2018-01-21 02:05:27 +04:00 committed by Johann Bauer
parent 275ba85595
commit fe54ce946c
1 changed files with 3 additions and 2 deletions

View File

@ -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 && \