mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
Merge pull request #3103 from jamesqo/patch-1
Forward arguments in the shell script correctly: use "$@" instead of $*
This commit is contained in:
commit
5bf2ca9681
|
@ -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 "$@"
|
||||
|
|
Loading…
Reference in a new issue