summaryrefslogtreecommitdiff
path: root/src/SMAPI.Installer
diff options
context:
space:
mode:
authorIshan Jalan <44338423+ishanjalan@users.noreply.github.com>2022-07-24 12:01:34 +0530
committerIshan Jalan <44338423+ishanjalan@users.noreply.github.com>2022-07-24 12:01:34 +0530
commita50a730886e2649472011e5c0eca5113b3774555 (patch)
treea66adedc3633ce49a6cdcadd45524b2645ea7f80 /src/SMAPI.Installer
parentea4307a282468c20c27c6b8c2722bd46f6d5c64d (diff)
downloadSMAPI-a50a730886e2649472011e5c0eca5113b3774555.tar.gz
SMAPI-a50a730886e2649472011e5c0eca5113b3774555.tar.bz2
SMAPI-a50a730886e2649472011e5c0eca5113b3774555.zip
unix-launcher.sh optimisations
I ran the file through Rider which used Intellisense(?) to suggest changes in addition to moving from .sh to .command
Diffstat (limited to 'src/SMAPI.Installer')
-rw-r--r--src/SMAPI.Installer/assets/unix-launcher.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/SMAPI.Installer/assets/unix-launcher.sh b/src/SMAPI.Installer/assets/unix-launcher.sh
index cff21bb0..b9d468a0 100644
--- a/src/SMAPI.Installer/assets/unix-launcher.sh
+++ b/src/SMAPI.Installer/assets/unix-launcher.sh
@@ -54,12 +54,12 @@ if [ "$(uname)" == "Darwin" ]; then
# https://stackoverflow.com/a/29511052/262123
if [ "$USE_CURRENT_SHELL" == "false" ]; then
echo "Reopening in the Terminal app..."
- echo '#!/bin/sh' > /tmp/open-smapi-terminal.sh
- echo "\"$0\" $@ --use-current-shell" >> /tmp/open-smapi-terminal.sh
- chmod +x /tmp/open-smapi-terminal.sh
- cat /tmp/open-smapi-terminal.sh
- open -W /tmp/open-smapi-terminal.sh
- rm /tmp/open-smapi-terminal.sh
+ echo '#!/bin/sh' > /tmp/open-smapi-terminal.command
+ echo "\"$0\" $@ --use-current-shell" >> /tmp/open-smapi-terminal.command
+ chmod +x /tmp/open-smapi-terminal.command
+ cat /tmp/open-smapi-terminal.command
+ open -W /tmp/open-smapi-terminal.command
+ rm /tmp/open-smapi-terminal.command
exit 0
fi
fi