From 95719c45251edab1af535d963065384ed20cadf5 Mon Sep 17 00:00:00 2001 From: Joel Kronqvist Date: Fri, 13 May 2022 15:47:50 +0300 Subject: Lol I just need to upload these changes to not loose them while testing --- init.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'init.sh') diff --git a/init.sh b/init.sh index dfca76c..fce90af 100755 --- a/init.sh +++ b/init.sh @@ -5,7 +5,9 @@ echo | date echo "Init running" echo "Removing old packages..." -rm -rf $PATH_TO_LYLLRUOKA +rm -rf "${PATH_TO_LYLLRUOKA%%FoodJS}" + +cd "${PATH_TO_LYLLRUOKA%%FoodJS}" echo "Waiting for connection..." while [ ! "$(ping 'www.github.com' -c 1)" ] @@ -16,6 +18,6 @@ done echo "Cloning new packages..." git clone "https://github.com/JoelHMikael/FoodJS.git" -echo "Starting server..." cd $PATH_TO_LYLLRUOKA +echo "Starting server..." node server.js -- cgit v1.2.3