X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=install_clean.sh;h=e21a1c672eb1b3ca8617f82ace71c910a2acc90f;hb=0781ce1e845d7ec4bd06a39105d5d0d68835c693;hp=654e45cf4331528b7a4731d03163934993c075eb;hpb=d3d05fd4650e0342b74e02f1698167c895c60c63;p=mTask.git diff --git a/install_clean.sh b/install_clean.sh index 654e45c..e21a1c6 100755 --- a/install_clean.sh +++ b/install_clean.sh @@ -6,9 +6,12 @@ then exit 1; fi TARGET="$(realpath "$1")" +if [ -d "$TARGET" ]; then + mv "$TARGET" "$TARGET.$(date +%F)" +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 \ | gunzip | tar --strip-components=1 --extract --directory="$TARGET" -echo "export CLEAN_HOME=$TARGET; export PATH=$TARGET:\$PATH;" +echo "export CLEAN_HOME=$TARGET; export PATH=$TARGET/bin:\$PATH;"