Skip to content

Commit

Permalink
$1 should be escaped (heroku#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlockwo authored and jabrown85 committed Jul 9, 2019
1 parent f77e60c commit 529017e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ BIN_DIR=$BUILD_DIR/.apt/usr/bin
rm $BIN_DIR/$SHIM
cat <<EOF >$BIN_DIR/$SHIM
#!/usr/bin/env bash
if [ $1 = "--version" ]; then
if [ \$1 = "--version" ]; then
exec \$HOME/.apt/opt/google/$BIN --version
elif [ $1 = "--product-version" ]; then
elif [ \$1 = "--product-version" ]; then
exec \$HOME/.apt/opt/google/$BIN --product-version
else
exec \$HOME/.apt/opt/google/$BIN --headless --no-sandbox --disable-gpu --remote-debugging-port=9222 \$@
Expand Down

0 comments on commit 529017e

Please sign in to comment.