[chk_nonexistent_ids] Proper exit codes introduces

This commit is contained in:
ayakael 2018-04-15 22:40:31 -04:00
parent f9ba957d8d
commit c3217d543a
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -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
}