From bfb421a1af5705c7b4cc61bc2441f94003f9ec1f Mon Sep 17 00:00:00 2001 From: statwonk Date: Sun, 19 Jul 2015 20:55:17 -0500 Subject: [PATCH] Add a tiny bit of extra protection for users when uninstalling --- uninstall.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uninstall.sh b/uninstall.sh index 46b51e3..718e3e8 100755 --- a/uninstall.sh +++ b/uninstall.sh @@ -68,7 +68,10 @@ # Remove the Versions directory and the Current symlink. - rm -fr "$POW_VERSIONS_PATH" + if [ "$POW_VERSIONS_PATH" != "/" ] && [ "$POW_VERSIONS_PATH" != "/*" ]; then + rm -fr "$POW_VERSIONS_PATH" + else echo "Uninstall aborted because POW_VERSIONS_PATH was set wrong" + fi rm -f "$POW_CURRENT_PATH"