Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #3990 from gratipay/fix-payday-required-commands
Browse files Browse the repository at this point in the history
Fix how payday checks for required commands
  • Loading branch information
chadwhitacre committed Apr 7, 2016
2 parents 4cc1555 + 788fce9 commit 62b6df9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions payday.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ confirm () {
require () {
if [ ! `which $1` ]; then
echo "The '$1' command was not found."
return 1
exit 1
fi
return 0
}
Expand Down Expand Up @@ -81,7 +81,10 @@ else
fi

export PATH="./env/bin:$PATH"
require honcho

require ./env/bin/honcho
require heroku

confirm "$RUN payday #$1?" || exit 0
case "$2" in
"")
Expand Down

0 comments on commit 62b6df9

Please sign in to comment.