aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinit.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.sh b/init.sh
index fce90af..51791d6 100755
--- a/init.sh
+++ b/init.sh
@@ -5,9 +5,7 @@ echo | date
echo "Init running"
echo "Removing old packages..."
-rm -rf "${PATH_TO_LYLLRUOKA%%FoodJS}"
-
-cd "${PATH_TO_LYLLRUOKA%%FoodJS}"
+rm -rf $PATH_TO_LYLLRUOKA
echo "Waiting for connection..."
while [ ! "$(ping 'www.github.com' -c 1)" ]
@@ -15,6 +13,8 @@ do
sleep 5
done
+cd "${PATH_TO_LYLLRUOKA%%FoodJS}"
+
echo "Cloning new packages..."
git clone "https://github.com/JoelHMikael/FoodJS.git"