Skip to content

Commit 17a9308

Browse files
committed
Ensure php & node overrides handle spaces in real bin paths
1 parent 6211507 commit 17a9308

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

overrides/path/node

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PREPEND_PATH=`dirname $0`/prepend.js
1010

1111
# Call node with the given arguments, prefixed with our extra logic
1212
if command -v winpty >/dev/null 2>&1; then
13-
winpty $real_node -r "$PREPEND_PATH" "$@"
13+
winpty "$real_node" -r "$PREPEND_PATH" "$@"
1414
else
15-
$real_node -r "$PREPEND_PATH" "$@"
15+
"$real_node" -r "$PREPEND_PATH" "$@"
1616
fi

overrides/path/php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ PHP_ARGS=(
1919
)
2020

2121
if command -v winpty >/dev/null 2>&1; then
22-
winpty $real_php ${PHP_ARGS[@]}
22+
winpty "$real_php" ${PHP_ARGS[@]}
2323
else
24-
$real_php ${PHP_ARGS[@]}
24+
"$real_php" ${PHP_ARGS[@]}
2525
fi

0 commit comments

Comments
 (0)