Skip to content

Commit

Permalink
fix arg passing/quoting, for hhvm function in particular
Browse files Browse the repository at this point in the history
  • Loading branch information
dzuelke committed Apr 29, 2014
1 parent 421ba2c commit 617574f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,20 @@ cd $BUILD_DIR

# Update the PATH
mkdir -p $BUILD_DIR/.profile.d
cat > $BUILD_DIR/.profile.d/php.sh <<EOF
export PATH="\$HOME/.heroku/php/bin:\$HOME/.heroku/php/sbin:\$PATH"
cat > $BUILD_DIR/.profile.d/php.sh <<"EOF"
export PATH="$HOME/.heroku/php/bin:$HOME/.heroku/php/sbin:$PATH"
EOF
if [[ $engine == "hhvm" ]]; then
cat >> $BUILD_DIR/.profile.d/hhvm.sh <<EOF
hhvm() { LD_LIBRARY_PATH=/app/.heroku/php/usr/lib/hhvm:/app/.heroku/php/usr/lib /app/.heroku/php/usr/bin/hhvm \$*; }
cat > $BUILD_DIR/.profile.d/hhvm.sh <<"EOF"
hhvm() { LD_LIBRARY_PATH=/app/.heroku/php/usr/lib/hhvm:/app/.heroku/php/usr/lib /app/.heroku/php/usr/bin/hhvm "$@"; }
export -f hhvm
EOF
fi
# Alias composer if needed
if [[ -f "composer.phar" ]]; then
cat > $BUILD_DIR/.profile.d/composer.sh <<EOF
cat > $BUILD_DIR/.profile.d/composer.sh <<"EOF"
composer() {
php composer.phar \$*
php composer.phar "$@"
}
export -f composer
EOF
Expand Down

0 comments on commit 617574f

Please sign in to comment.