[parser] Added exit commenrs for deploy and update

This commit is contained in:
ayakael 2018-04-07 22:40:46 -04:00
parent 5991f4beb1
commit 1874482e55
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -62,6 +62,8 @@ case "${1}" in
shift
cmd_deploy "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 0 ]] && echo "Deployment completed successfully"
[[ ${EXIT} -eq 1 ]] && echo "Deployment completed with erros"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -70,6 +72,8 @@ case "${1}" in
shift
cmd_update "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 0 ]] && echo "Update completed successfully"
[[ ${EXIT} -eq 1 ]] && echo "Update completed with erros"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;