From 788fce96a7785b0b469ccec0b26ce2dac6865589 Mon Sep 17 00:00:00 2001 From: Paul Kuruvilla Date: Thu, 7 Apr 2016 09:47:20 -0400 Subject: [PATCH] Fix how payday checks for required commands --- payday.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/payday.sh b/payday.sh index 4f50ac637c..b46e96889c 100755 --- a/payday.sh +++ b/payday.sh @@ -51,7 +51,7 @@ confirm () { require () { if [ ! `which $1` ]; then echo "The '$1' command was not found." - return 1 + exit 1 fi return 0 } @@ -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 "")