[gen_tracks] Now supplies shntool with adequate file name
This commit is contained in:
parent
341289bc68
commit
c8faabe714
1 changed files with 2 additions and 2 deletions
|
@ -25,8 +25,8 @@ gen_tracks() {
|
||||||
[[ -z "${breakpointList[@]}" ]] && { cat "${IMAGE}" > ${GITDIR}/split-track01.flac; return 0; }
|
[[ -z "${breakpointList[@]}" ]] && { cat "${IMAGE}" > ${GITDIR}/split-track01.flac; return 0; }
|
||||||
|
|
||||||
# Attempts first split. If fails because of lack of CD quality file, retries with modified breakpointList
|
# Attempts first split. If fails because of lack of CD quality file, retries with modified breakpointList
|
||||||
if ! printf '%s\n' ${breakpointList[@]} | shntool split -o flac -O always -d "${GITDIR}" "${IMAGE}.flac" ; then
|
if ! printf '%s\n' ${breakpointList[@]} | shntool split -o flac -O always -d "${GITDIR}" "${IMAGE}" ; then
|
||||||
printf '%s\n' ${breakpointList[@]} | sed s/$/0/ | shntool split -o flac -O always -d "${GITDIR}" "${IMAGE}.flac"
|
printf '%s\n' ${breakpointList[@]} | sed s/$/0/ | shntool split -o flac -O always -d "${GITDIR}" "${IMAGE}"
|
||||||
[[ $? -ne 0 ]] && return 1 || return 0
|
[[ $? -ne 0 ]] && return 1 || return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue