From ab1cf814fa1ec59f33c1d25326deeba2a0ff58b1 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 24 Oct 2014 15:07:03 +0200 Subject: [PATCH] Correct the var name: file -> FILE ... --- flac_to_mp3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flac_to_mp3 b/flac_to_mp3 index 751ffc9..eeb6f87 100755 --- a/flac_to_mp3 +++ b/flac_to_mp3 @@ -18,7 +18,7 @@ if [ -d ${ALBUM_NAME} ]; then pushd "${ALBUM_NAME}" ## For all files with the old format in the album directory - for file in *.${OLD_FORMAT} + for FILE in *.${OLD_FORMAT} do # -v error: display only if error avconv -v "${LOG_LEVEL}" -i "${FILE}" -b "${BITRATE}" "${NEW_ALBUM_NAME}/${FILE%${OLD_FORMAT}}${NEW_FORMAT}"