From 40eb66497f9bd16668fe799ec3ed491e4d23e48d Mon Sep 17 00:00:00 2001 From: Diogo Trindade Date: Sun, 26 Mar 2023 22:47:49 +0100 Subject: [PATCH] Linux - update script fixes --- src/Artemis.UI.Linux/Scripts/update.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/Artemis.UI.Linux/Scripts/update.sh b/src/Artemis.UI.Linux/Scripts/update.sh index db79c50fb..315a1816e 100644 --- a/src/Artemis.UI.Linux/Scripts/update.sh +++ b/src/Artemis.UI.Linux/Scripts/update.sh @@ -10,11 +10,6 @@ sourceDirectory=$1 destinationDirectory=$2 artemisArgs=$3 -echo "sourceDirectory $sourceDirectory" -echo "destinationDirectory $destinationDirectory" -echo "artemisArgs $artemisArgs" -exit 0 - # Wait for up to 10 seconds for the Artemis process to exit i=0 while [ $i -le 10 ] @@ -42,7 +37,7 @@ fi # Clear the destination directory but don't remove it echo "Cleaning up old version where needed" -rm -rf "{$destinationDirectory:?}/"* +rm -rf "${destinationDirectory:?}/"* # Move the contents of the source directory to the destination directory echo "Installing new files" @@ -59,9 +54,9 @@ sleep 1 # If the user has specified arguments, pass them to the executable if [ -z "$artemisArgs" ] then - "$1/Artemis.UI.Linux" & + "$destinationDirectory/Artemis.UI.Linux" & else - "$1/Artemis.UI.Linux" "$artemisArgs" & + "$destinationDirectory/Artemis.UI.Linux" "$artemisArgs" & fi