From 46d4d0e04a399b2cc0c734c6342fbc9262882d9f Mon Sep 17 00:00:00 2001 From: Danny Thomas Date: Sat, 29 Oct 2016 19:36:42 -0700 Subject: [PATCH] Add check for auth file --- ec2gaming-start.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ec2gaming-start.sh b/ec2gaming-start.sh index aebbe22..fd10b62 100755 --- a/ec2gaming-start.sh +++ b/ec2gaming-start.sh @@ -3,6 +3,10 @@ source "$(dirname "$0")/ec2gaming.header" BOOTSTRAP=0 +if [ ! -f ec2gaming.auth ]; then + echo "ec2gaming.auth file not found!" +fi + echo -n "Getting lowest $INSTANCE_TYPE bid... " PRICE_AND_ZONE=($(./ec2gaming-price.sh)) PRICE=${PRICE_AND_ZONE[0]}