[cmd_fsck] Fixed command use
This commit is contained in:
parent
ff71d6530d
commit
6b047c87f9
1 changed files with 7 additions and 7 deletions
14
src/cmd_fsck
14
src/cmd_fsck
|
@ -18,23 +18,23 @@ cmd_fsck() {
|
|||
[[ ! -f "${DB_FILE}" ]] && return 3
|
||||
[[ ! -d "${GIT_DIR}/.git" ]] && return 2
|
||||
|
||||
if [[ -z "${cmdList[@]}" ]]; then
|
||||
chk_deployed_ids "${TARGET}" "${DB_FILE}"
|
||||
chk_nonexistent_ids "${TARGET}" "${DB_FILE}"
|
||||
chk_metadata "${GIT_DIR}" "${TARGET}" "${DB_FILE}"
|
||||
fi
|
||||
|
||||
case ${cmdList[@]} in
|
||||
--deployed-ids)
|
||||
chk_deployed_ids "${TARGET}" "${DB_FILE}"
|
||||
;;
|
||||
|
||||
--non-existent-ids)
|
||||
--nonexistent-ids)
|
||||
chk_nonexistent_ids "${TARGET}" "${DB_FILE}"
|
||||
;;
|
||||
|
||||
--metadata)
|
||||
chk_metadata "${GIT_DIR}" "${TARGET}" "${DB_FILE}"
|
||||
;;
|
||||
|
||||
*)
|
||||
chk_deployed_ids "${TARGET}" "${DB_FILE}"
|
||||
chk_nonexistent_ids "${TARGET}" "${DB_FILE}"
|
||||
chk_metadata "${GIT_DIR}" "${TARGET}" "${DB_FILE}"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue