File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 22set -e
33
44# Exclude ourselves from PATH, find the real node, then reset PATH
5- PATH=" ${PATH// `dirname $0 `:/ } "
5+ PATH=" ${PATH// `dirname " $0 " `:/ } "
66real_node=` command -v node`
7- PATH=" ` dirname $0 ` :$PATH "
7+ PATH=" ` dirname " $0 " ` :$PATH "
88
9- PREPEND_PATH=` dirname $0 ` /prepend.js
9+ PREPEND_PATH=` dirname " $0 " ` /prepend.js
1010
1111# Call node with the given arguments, prefixed with our extra logic
1212if command -v winpty > /dev/null 2>&1 ; then
Original file line number Diff line number Diff line change 22set -e
33
44# Exclude ourselves from PATH, find the real php, then reset PATH
5- PATH=" ${PATH// `dirname $0 `:/ } "
5+ PATH=" ${PATH// `dirname " $0 " `:/ } "
66real_php=` command -v php`
7- PATH=" ` dirname $0 ` :$PATH "
7+ PATH=" ` dirname " $0 " ` :$PATH "
88
99# Call PHP with the given arguments, and a few extra
1010PHP_ARGS=(
@@ -13,13 +13,13 @@ PHP_ARGS=(
1313 # Make cURL trust us
1414 -d " curl.cainfo=$SSL_CERT_FILE " \
1515 # Prepend a script that enables the proxy
16- -d " auto_prepend_file=` dirname $0 ` /prepend.php" \
16+ -d " auto_prepend_file=` dirname " $0 " ` /prepend.php" \
1717 # Pass through all other provided arguments
1818 " $@ "
1919)
2020
2121if command -v winpty > /dev/null 2>&1 ; then
22- winpty " $real_php " ${PHP_ARGS[@]}
22+ winpty " $real_php " " ${PHP_ARGS[@]} "
2323else
24- " $real_php " ${PHP_ARGS[@]}
24+ " $real_php " " ${PHP_ARGS[@]} "
2525fi
You can’t perform that action at this time.
0 commit comments