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:
parent
275ba85595
commit
fe54ce946c
|
@ -7,10 +7,11 @@ if [ ! -z "$1" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
here=$(dirname "$0")
|
here=$(dirname "$0")
|
||||||
|
test -n "$here" -a -d "$here" || exit
|
||||||
|
|
||||||
echo "Clearing $here/build and $here/dist..."
|
echo "Clearing $here/build and $here/dist..."
|
||||||
rm $here/build/* -rf
|
rm "$here"/build/* -rf
|
||||||
rm $here/dist/* -rf
|
rm "$here"/dist/* -rf
|
||||||
|
|
||||||
$here/prepare-wine.sh && \
|
$here/prepare-wine.sh && \
|
||||||
$here/prepare-pyinstaller.sh && \
|
$here/prepare-pyinstaller.sh && \
|
||||||
|
|
Loading…
Reference in New Issue