Update unix-launcher.sh

$LAUNCHER does not evaluate when enclosed in single quotes. Changed to double quotes to run properly.
This commit is contained in:
Jackson Law 2020-06-22 22:36:59 -07:00 committed by GitHub
parent ba0dff819f
commit d561768246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ else
# if no terminal was found, run in current shell or with no output # if no terminal was found, run in current shell or with no output
if [ -z "$LAUNCHTERM" ]; then if [ -z "$LAUNCHTERM" ]; then
sh -c 'TERM=xterm $LAUNCHER' sh -c "TERM=xterm $LAUNCHER"
if [ $? -eq 127 ]; then if [ $? -eq 127 ]; then
$LAUNCHER --no-terminal $LAUNCHER --no-terminal
fi fi
@ -116,7 +116,7 @@ else
;; ;;
*) *)
# If we don't know the terminal, just try to run it in the current shell. # If we don't know the terminal, just try to run it in the current shell.
sh -c 'TERM=xterm $LAUNCHER' sh -c "TERM=xterm $LAUNCHER"
# if THAT fails, launch with no output # if THAT fails, launch with no output
if [ $? -eq 127 ]; then if [ $? -eq 127 ]; then
$LAUNCHER --no-terminal $LAUNCHER --no-terminal