[cmd_*][parser] Exit code for missing database file is now 3
This commit is contained in:
parent
7ae4f59c5d
commit
0dfc40aaa8
7 changed files with 12 additions and 12 deletions
12
src/parser
12
src/parser
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue