From ead0ac3776422e3b9062028530761af9f22d7adc Mon Sep 17 00:00:00 2001 From: ayakael Date: Thu, 27 Dec 2018 22:33:25 -0500 Subject: [PATCH] [import_images] Makes sure log file is present for EAC and CUETOOLS source --- src/import_images | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/import_images b/src/import_images index e3d9932..dcfc0c4 100644 --- a/src/import_images +++ b/src/import_images @@ -41,6 +41,10 @@ import_images() { [[ ! -f "${path}" ]] && { echo "${path} - No such file or directory"; return 1; } 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" # Checks if ACCURIP should exist or not if [[ -n "${ACCURIP}" ]] && [[ "${SOURCE}" == "EAC" ]]; then echo "Accurip file specified, ignored"; unset ${ACCURIP}; fi