mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Linux - update script fixes
This commit is contained in:
1 parent
0c1160eb62
commit
40eb66497f
1 file changed
+3
-8
@@ -10,11 +10,6 @@ sourceDirectory=$1
|
|||||||
destinationDirectory=$2
|
destinationDirectory=$2
|
||||||
artemisArgs=$3
|
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
|
# Wait for up to 10 seconds for the Artemis process to exit
|
||||||
i=0
|
i=0
|
||||||
while [ $i -le 10 ]
|
while [ $i -le 10 ]
|
||||||
@@ -42,7 +37,7 @@ fi
|
|||||||
|
|
||||||
# Clear the destination directory but don't remove it
|
# Clear the destination directory but don't remove it
|
||||||
echo "Cleaning up old version where needed"
|
echo "Cleaning up old version where needed"
|
||||||
rm -rf "{$destinationDirectory:?}/"*
|
rm -rf "${destinationDirectory:?}/"*
|
||||||
|
|
||||||
# Move the contents of the source directory to the destination directory
|
# Move the contents of the source directory to the destination directory
|
||||||
echo "Installing new files"
|
echo "Installing new files"
|
||||||
@@ -59,9 +54,9 @@ sleep 1
|
|||||||
# If the user has specified arguments, pass them to the executable
|
# If the user has specified arguments, pass them to the executable
|
||||||
if [ -z "$artemisArgs" ]
|
if [ -z "$artemisArgs" ]
|
||||||
then
|
then
|
||||||
"$1/Artemis.UI.Linux" &
|
"$destinationDirectory/Artemis.UI.Linux" &
|
||||||
else
|
else
|
||||||
"$1/Artemis.UI.Linux" "$artemisArgs" &
|
"$destinationDirectory/Artemis.UI.Linux" "$artemisArgs" &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user