[cmd_*][parser] Exit code for missing database file is now 3

This commit is contained in:
ayakael 2018-04-07 21:40:41 -04:00
parent 7ae4f59c5d
commit 0dfc40aaa8
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
7 changed files with 12 additions and 12 deletions

View file

@ -46,7 +46,7 @@ case "${1}" in
shift
cmd_exclude "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -54,7 +54,7 @@ case "${1}" in
shift
cmd_include$ "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -62,7 +62,7 @@ case "${1}" in
shift
cmd_deploy "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -70,7 +70,7 @@ case "${1}" in
shift
cmd_update "${GIT_DIR}" ${@}
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -78,7 +78,7 @@ case "${1}" in
shift
cmd_du "${GIT_DIR}" "${@}"
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
@ -86,7 +86,7 @@ case "${1}" in
shift
cmd_fsck "${GIT_DIR}" "${@}"
EXIT=$?
[[ ${EXIT} -eq 1 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 3 ]] && echo "Database file non-existent"
[[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"
;;
esac