diff --git a/examples/cli/run.sh b/examples/cli/run.sh index e0a2d3f..e0e6d1d 100755 --- a/examples/cli/run.sh +++ b/examples/cli/run.sh @@ -14,17 +14,15 @@ trap cleanup EXIT web-messaging-tester example-pass.yml -id $DEPLOYMENT_ID -r $REGION -p 10 if [ $? -ne 0 ] then - echo "" - echo "${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}" + echo "\n\n${RED}Passing test did not result in Exit Code of 0. Exit code was $?${NO_COLOUR}" exit 1 fi ## Failing test exists with code 1 web-messaging-tester example-fail.yml -id $DEPLOYMENT_ID -r $REGION -p 10 -if [ $? -ne 1 ] +if [ $? -ne 0 ] then - echo "" - echo "${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}" + echo "\n\n${RED}Failing test did not result in Exit Code of 1. Exit code was $?${NO_COLOUR}" exit 1 fi