[import_images] Makes sure log file is present for EAC and CUETOOLS source
This commit is contained in:
parent
238596373f
commit
ead0ac3776
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue