Added shell shebang to MacOS Launcher code

This commit is contained in:
bruce2409 2021-12-22 17:41:11 +00:00
parent 52f4df3f30
commit 5712116879
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ if [ "$(uname)" == "Darwin" ]; then
# https://stackoverflow.com/a/29511052/262123 # https://stackoverflow.com/a/29511052/262123
if [ "$SKIP_TERMINAL" == "false" ]; then if [ "$SKIP_TERMINAL" == "false" ]; then
echo "Reopening in the Terminal app..." 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 chmod +x /tmp/open-smapi-terminal.sh
cat /tmp/open-smapi-terminal.sh cat /tmp/open-smapi-terminal.sh
open -W -a Terminal /tmp/open-smapi-terminal.sh open -W -a Terminal /tmp/open-smapi-terminal.sh