From cf11283f95dd839cdaef19b9ca8ca3412d49a652 Mon Sep 17 00:00:00 2001 From: Alex Grin Date: Wed, 13 Nov 2019 09:37:05 -0500 Subject: [PATCH] error if `aws` command not found --- snapshot.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/snapshot.sh b/snapshot.sh index b42ae40..b8a4cd9 100644 --- a/snapshot.sh +++ b/snapshot.sh @@ -4,6 +4,8 @@ echo "Running $0" +hash aws 2>/dev/null || { echo >&2 '`aws` command not found. Install it: sudo apt install awscli'; exit 1; } + user=$(whoami) echo "Starting servers"