Added shell shebang to MacOS Launcher code
This commit is contained in:
parent
52f4df3f30
commit
5712116879
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue