diff --git a/script.sh b/script.sh index 5f889c3..485a50e 100755 --- a/script.sh +++ b/script.sh @@ -43,4 +43,11 @@ then netlify $NETLIFY_SITE update $NETLIFY_UPDATE_OPTIONS; fi -echo $'\n'"> Successfully deployed!"$'\n' \ No newline at end of file +rc=$?; +if [[ $rc != 0 ]]; +then + echo "> non-zero exit code $rc" && + exit $rc +else + echo $'\n'"> Successfully deployed!"$'\n' +fi \ No newline at end of file