[chk_nonexistent_ids] Proper exit codes introduces
This commit is contained in:
parent
f9ba957d8d
commit
c3217d543a
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ chk_nonexistent_ids() {
|
|||
[[ $? -eq 0 ]] || { echo "[>>>>>>] Error reported"; echo "${TRACKID} of ${IMAGEID} points to non-existent file"}; local ERR=true; }
|
||||
local COUNT=$(( ${COUNT} + 1 ))
|
||||
done
|
||||
[[ "${ERR}" == "true" ]] && { _msg EXEC "Nonexistent files check completed with errors"; _msg WARN; } || { _msg EXEC "Nonexistent files check completed succesfully"; _msg OK; }
|
||||
[[ "${ERR}" == "true" ]] && return 1 || return 0
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue