Correct the var name: file -> FILE ...
This commit is contained in:
parent
ed4432c18e
commit
ab1cf814fa
|
@ -18,7 +18,7 @@ if [ -d ${ALBUM_NAME} ]; then
|
||||||
pushd "${ALBUM_NAME}"
|
pushd "${ALBUM_NAME}"
|
||||||
|
|
||||||
## For all files with the old format in the album directory
|
## For all files with the old format in the album directory
|
||||||
for file in *.${OLD_FORMAT}
|
for FILE in *.${OLD_FORMAT}
|
||||||
do
|
do
|
||||||
# -v error: display only if error
|
# -v error: display only if error
|
||||||
avconv -v "${LOG_LEVEL}" -i "${FILE}" -b "${BITRATE}" "${NEW_ALBUM_NAME}/${FILE%${OLD_FORMAT}}${NEW_FORMAT}"
|
avconv -v "${LOG_LEVEL}" -i "${FILE}" -b "${BITRATE}" "${NEW_ALBUM_NAME}/${FILE%${OLD_FORMAT}}${NEW_FORMAT}"
|
||||||
|
|
Loading…
Reference in New Issue