[import_images] Makes sure log file is present for EAC and CUETOOLS source

This commit is contained in:
ayakael 2018-12-27 22:33:25 -05:00
parent 238596373f
commit ead0ac3776
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -41,6 +41,10 @@ import_images() {
[[ ! -f "${path}" ]] && { echo "${path} - No such file or directory"; return 1; } [[ ! -f "${path}" ]] && { echo "${path} - No such file or directory"; return 1; }
done done
echo "Checking existence of LOG file"
if [[ -z "${LOG}" ]] && [[ "${SOURCE}" == "CUETOOLS" ]]; then echo "CUETOOLS requires a LOG file, please make sure it is generated"; return 2; fi
if [[ -z "${LOG}" ]] && [[ "${SOURCE}" == "EAC" ]]; then echo "EAC requires a LOG file, please make sure it is generated"; return 2; fi
echo "Checking existence of ACCURIP file" echo "Checking existence of ACCURIP file"
# Checks if ACCURIP should exist or not # Checks if ACCURIP should exist or not
if [[ -n "${ACCURIP}" ]] && [[ "${SOURCE}" == "EAC" ]]; then echo "Accurip file specified, ignored"; unset ${ACCURIP}; fi if [[ -n "${ACCURIP}" ]] && [[ "${SOURCE}" == "EAC" ]]; then echo "Accurip file specified, ignored"; unset ${ACCURIP}; fi