Merge pull request #3103 from jamesqo/patch-1

Forward arguments in the shell script correctly: use "$@" instead of $*
This commit is contained in:
João Moreno 2016-02-18 17:12:46 +01:00
commit 5bf2ca9681

View file

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
if [[ "$OSTYPE" == "darwin"* ]]; then
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
@ -27,10 +27,10 @@ function code() {
# Launch Code
if [[ "$OSTYPE" == "darwin"* ]]; then
./.build/electron/Electron.app/Contents/MacOS/Electron . $*
exec ./.build/electron/Electron.app/Contents/MacOS/Electron . "$@"
else
./.build/electron/electron . $*
exec ./.build/electron/electron . "$@"
fi
}
code $*
code "$@"