Skip to content

Commit

Permalink
Don't quote ARGS multiple times
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogTheFrog committed Sep 15, 2024
1 parent 58ecf87 commit dc41e7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions resources/linux/AppRun
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ "$1" = "--exec" ]; then
BINARY_NAME="$2"
ARGS="${@:3}"
if [ -e "$HERE/usr/bin/$BINARY_NAME" ] ; then
exec "$HERE/usr/bin/$BINARY_NAME" "$ARGS"
exec "$HERE/usr/bin/$BINARY_NAME" $ARGS
else
echo "$BINARY_NAME does not exist!"
exit 1
Expand All @@ -22,11 +22,11 @@ elif [ ! -z $APPIMAGE ] ; then
# Replace the app image env with the symlink as it will be used
# to create an autostart script
SYMLINK_PATH="$(realpath -s "$ARGV0")"
APPIMAGE=$SYMLINK_PATH exec "$HERE/usr/bin/$BINARY_NAME" "$ARGS"
APPIMAGE=$SYMLINK_PATH exec "$HERE/usr/bin/$BINARY_NAME" $ARGS
else
exec "$HERE/usr/bin/MoonDeckBuddy" "$ARGS"
exec "$HERE/usr/bin/MoonDeckBuddy" $ARGS
fi
else
ARGS="$@"
exec "$HERE/usr/bin/MoonDeckBuddy" "$ARGS"
exec "$HERE/usr/bin/MoonDeckBuddy" $ARGS
fi

0 comments on commit dc41e7c

Please sign in to comment.