error if aws command not found

This commit is contained in:
Alex Grin 2019-11-13 09:37:05 -05:00 committed by GitHub
parent 8e0c7b4f43
commit cf11283f95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,6 +4,8 @@
echo "Running $0" echo "Running $0"
hash aws 2>/dev/null || { echo >&2 '`aws` command not found. Install it: sudo apt install awscli'; exit 1; }
user=$(whoami) user=$(whoami)
echo "Starting servers" echo "Starting servers"