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

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 "$@"