Skip to content

Commit

Permalink
fix some instances of composer's version warning messing up return va…
Browse files Browse the repository at this point in the history
…lues
  • Loading branch information
dzuelke committed May 1, 2014
1 parent c5dbb2f commit b25bfc4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ fi
EOF

if [[ ! -f "Procfile" ]]; then
bindir=$(composer config bin-dir)
bindir=$(composer config bin-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT
echo "web: $bindir/heroku-$engine-apache2" > Procfile
notice_inline "No Procfile, defaulting to 'web: $bindir/heroku-$engine-apache2'"
fi
2 changes: 1 addition & 1 deletion bin/heroku-hhvm-apache2
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export HEROKU_APP_DIR=$(pwd)
export DOCUMENT_ROOT="$HEROKU_APP_DIR"
# set a default port if none is given
export PORT=${PORT:-$(( $RANDOM+1024 ))}
COMPOSER_VENDOR_DIR=$(composer config vendor-dir)
COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT

while getopts ":C:c:i:h" opt; do
case $opt in
Expand Down
2 changes: 1 addition & 1 deletion bin/heroku-hhvm-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export HEROKU_APP_DIR=$(pwd)
export DOCUMENT_ROOT="$HEROKU_APP_DIR"
# set a default port if none is given
export PORT=${PORT:-$(( $RANDOM+1024 ))}
COMPOSER_VENDOR_DIR=$(composer config vendor-dir)
COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT

while getopts ":C:c:i:h" opt; do
case $opt in
Expand Down
2 changes: 1 addition & 1 deletion bin/heroku-php-apache2
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export HEROKU_APP_DIR=$(pwd)
export DOCUMENT_ROOT="$HEROKU_APP_DIR"
# set a default port if none is given
export PORT=${PORT:-$(( $RANDOM+1024 ))}
COMPOSER_VENDOR_DIR=$(composer config vendor-dir)
COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT

while getopts ":C:c:F:f:i:h" opt; do
case $opt in
Expand Down
2 changes: 1 addition & 1 deletion bin/heroku-php-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export HEROKU_APP_DIR=$(pwd)
export DOCUMENT_ROOT="$HEROKU_APP_DIR"
# set a default port if none is given
export PORT=${PORT:-$(( $RANDOM+1024 ))}
COMPOSER_VENDOR_DIR=$(composer config vendor-dir)
COMPOSER_VENDOR_DIR=$(composer config vendor-dir | tail -n 1) # tail, as composer echos outdated version warnings to STDOUT

while getopts ":C:c:F:f:i:h" opt; do
case $opt in
Expand Down

0 comments on commit b25bfc4

Please sign in to comment.