shares are working again, viewing at least
[mTask.git] / install_clean.sh
index 005cbe7..63bcb5e 100755 (executable)
@@ -6,6 +6,9 @@ then
        exit 1;
 fi
 TARGET="$(realpath "$1")"
+if [ -d "$TARGET" ]; then
+       mv "$TARGET" "$TARGET.$(date +%F)" || rm -fr "$TARGET"
+fi
 rm -fr "$TARGET"
 mkdir -p "$TARGET"
 curl -sSL ftp://ftp.cs.ru.nl/pub/Clean/builds/linux-x64/clean-bundle-complete-linux-x64-latest.tgz \