diff --git a/src/parser b/src/parser index 14aff2f..fc4e28d 100644 --- a/src/parser +++ b/src/parser @@ -106,6 +106,11 @@ case "${1}" in ;; *) + TARGET="${1}" + shift + ;; + + "") break 2 ;; @@ -114,7 +119,7 @@ case "${1}" in [[ -z ${cmdList[@]} ]] && cmdList=(deployed-ids nonexistent-ids metadata) - cmd_fsck "${GIT_DIR}" "${@}" ${cmdList[@]} + cmd_fsck "${GIT_DIR}" "${TARGET}" ${cmdList[@]} EXIT=$? [[ ${EXIT} -eq 3 ]] && echo "Database file non-existent" [[ ${EXIT} -eq 2 ]] && echo "Git directory not a valid git repository"