We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6480172 commit dd73aabCopy full SHA for dd73aab
1 file changed
scripts/code.sh
@@ -2,13 +2,13 @@
2
3
if [[ "$OSTYPE" == "darwin"* ]]; then
4
realpath() { [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"; }
5
- ROOT=$(dirname $(dirname $(realpath "$0")))
+ ROOT=$(dirname "$(dirname "$(realpath "$0")")")
6
else
7
- ROOT=$(dirname $(dirname $(readlink -f $0)))
+ ROOT=$(dirname "$(dirname "$(readlink -f $0)")")
8
fi
9
10
function code() {
11
- cd $ROOT
+ cd "$ROOT"
12
13
14
NAME=`node -p "require('./product.json').nameLong"`
@@ -41,7 +41,4 @@ function code() {
41
exec "$CODE" . "$@"
42
}
43
44
-# Use the following to get v8 tracing:
45
-# code --js-flags="--trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces" "$@"
46
-
47
code "$@"
0 commit comments