tFixed rm -rf - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fe54ce946c0437c037e69eddf318e1a8781c73ed DIR parent 275ba85595e9c78f694f10161ca7bc6840d36f76 HTML 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: M contrib/build-wine/build.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/contrib/build-wine/build.sh b/contrib/build-wine/build.sh t@@ -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 && \