[gen_image] Fixed bug where joined.flac would not be renamed to ${TARGET} when first attempt at joining them failed
This commit is contained in:
parent
122efb71db
commit
1dd176fe47
1 changed files with 2 additions and 2 deletions
|
@ -28,11 +28,11 @@ gen_image() {
|
|||
echo ${fileList[@]}
|
||||
shntool join -O always ${fileList[@]} -d "${TARGET_DIR}" -o flac -q
|
||||
[[ $? -ne 0 ]] && return 1
|
||||
return 2
|
||||
local WARN=true
|
||||
fi
|
||||
fi
|
||||
metaflac --remove-all --dont-use-padding "${TARGET_DIR}/joined.flac"
|
||||
mv "${TARGET_DIR}/joined.flac" "${TARGET}"
|
||||
return 0
|
||||
[[ ${WARN} == "true" ]] && return 2 || return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue