diff options
author | bruce2409 <bruce@brucedev.com> | 2021-12-22 17:41:11 +0000 |
---|---|---|
committer | bruce2409 <bruce@brucedev.com> | 2021-12-22 17:41:11 +0000 |
commit | 571211687935ce3a12bf4905f056d9be1d6b147f (patch) | |
tree | 6de4338f86d6b3a20e772538de58204dc2c9748a | |
parent | 52f4df3f301ecde85a76e10ea9ddd607ab7a1b79 (diff) | |
download | SMAPI-571211687935ce3a12bf4905f056d9be1d6b147f.tar.gz SMAPI-571211687935ce3a12bf4905f056d9be1d6b147f.tar.bz2 SMAPI-571211687935ce3a12bf4905f056d9be1d6b147f.zip |
Added shell shebang to MacOS Launcher code
-rw-r--r-- | src/SMAPI.Installer/assets/unix-launcher.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/SMAPI.Installer/assets/unix-launcher.sh b/src/SMAPI.Installer/assets/unix-launcher.sh index 713597e2..7cf39f0e 100644 --- a/src/SMAPI.Installer/assets/unix-launcher.sh +++ b/src/SMAPI.Installer/assets/unix-launcher.sh @@ -31,7 +31,8 @@ if [ "$(uname)" == "Darwin" ]; then # https://stackoverflow.com/a/29511052/262123 if [ "$SKIP_TERMINAL" == "false" ]; then echo "Reopening in the Terminal app..." - echo "\"$0\" $@ --no-reopen-terminal" > /tmp/open-smapi-terminal.sh + echo '#!/bin/sh" > /tmp/open-smapi-terminal.sh + echo "\"$0\" $@ --no-reopen-terminal" >> /tmp/open-smapi-terminal.sh chmod +x /tmp/open-smapi-terminal.sh cat /tmp/open-smapi-terminal.sh open -W -a Terminal /tmp/open-smapi-terminal.sh |