From c5b043e4473a505c2382211517b8a85c914760d7 Mon Sep 17 00:00:00 2001 From: alarig Date: Mon, 21 Jan 2019 17:26:17 +0100 Subject: [PATCH] Exit in case of creds failure --- creationRoutesVM.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/creationRoutesVM.sh b/creationRoutesVM.sh index 5a6f91a..a639444 100755 --- a/creationRoutesVM.sh +++ b/creationRoutesVM.sh @@ -25,7 +25,8 @@ if [ -f ./creds ]; then source ./creds CURL='curl -s -k -sS' else - write_log ERROR 'The file creads doesn’t exist' + write_log FATAL 'The file creads doesn’t exist' + exit 1 fi # check for commands in the path