summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2022-01-02 13:45:38 -0500
committerGitHub <noreply@github.com>2022-01-02 13:45:38 -0500
commitadb3926609ac5859d107b8bc7bea7c1d8bc47f65 (patch)
tree1d2714e231b073e89c1092d3214cb0db0709e48b /src
parentaad77242f02c0a851b5d6ad11c258d9b74d90c5b (diff)
parent571211687935ce3a12bf4905f056d9be1d6b147f (diff)
downloadSMAPI-adb3926609ac5859d107b8bc7bea7c1d8bc47f65.tar.gz
SMAPI-adb3926609ac5859d107b8bc7bea7c1d8bc47f65.tar.bz2
SMAPI-adb3926609ac5859d107b8bc7bea7c1d8bc47f65.zip
Merge pull request #820 from bruce2409/update-launcher-sh
Added shell shebang to MacOS Launcher code
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Installer/assets/unix-launcher.sh3
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