Verified Commit ea3e4072 authored by Silvio Rhatto's avatar Silvio Rhatto
Browse files

Fix: onionspray-get-logs-from-s3: check for awscli availability

parent aae91654
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@
#

# Parameters
BASENAME="`basename $0`"
DIRNAME="`dirname $0`"
WORK="$DIRNAME/logs"

@@ -31,6 +32,12 @@ else
  source $DIRNAME/onionspray-get-logs-from-s3.conf.sample
fi

# Check for aws program
if ! which aws &> /dev/null; then
  echo "$BASENAME: please install awscli first"
  exit 1
fi

# Prepare
mkdir -p $WORK