fixed writeCsv function

This commit is contained in:
2024-11-26 19:34:11 +01:00
parent 392c8f6da7
commit 1592758e7d

View File

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