From 1592758e7d9c6d0e5d0e7e4012e2a04802173b30 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 26 Nov 2024 19:34:11 +0100 Subject: [PATCH] fixed writeCsv function --- depFiles/ripCD.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/depFiles/ripCD.sh b/depFiles/ripCD.sh index 58e6ea2..e9b3a7a 100755 --- a/depFiles/ripCD.sh +++ b/depFiles/ripCD.sh @@ -69,8 +69,8 @@ checkEncDir(){ writeCsv(){ CSVFILE="${VOLUME}/${RIP_DIR}/albums.csv" - if [ ! -e ${CSVFILE} ]; then - touch ${CSVFILE} + if [ ! -e "${CSVFILE}" ]; then + touch "${CSVFILE}" fi grep -qF -- ${DISCID} "${CSVFILE}" || echo ""${DISCID}","${PERFORMER}","${ALBUM_TITLE}","${YEAR}","${DISCNUMBER}"" >> "${CSVFILE}" }