feat(script): add non zero exit code

pull/1/head v0.1.1
Luca Perret 2018-02-15 21:43:33 +01:00
parent 37f9e405ca
commit 4e780c7beb
1 changed files with 8 additions and 1 deletions

View File

@ -43,4 +43,11 @@ then
netlify $NETLIFY_SITE update $NETLIFY_UPDATE_OPTIONS; netlify $NETLIFY_SITE update $NETLIFY_UPDATE_OPTIONS;
fi fi
rc=$?;
if [[ $rc != 0 ]];
then
echo "> non-zero exit code $rc" &&
exit $rc
else
echo $'\n'"> Successfully deployed!"$'\n' echo $'\n'"> Successfully deployed!"$'\n'
fi