[export_gen] Fixed bug where sometimes shntool would not take arguments if they were after file
This commit is contained in:
parent
a184b1d70b
commit
41fad1e66c
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ export_gen() {
|
||||||
[[ -z "${breakpointList[@]}" ]] && { cat "${GITDIR}/${IMAGEID}.flac" > ${GITDIR}/split-track01.flac; return 0; }
|
[[ -z "${breakpointList[@]}" ]] && { cat "${GITDIR}/${IMAGEID}.flac" > ${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 "${GITDIR}/${IMAGEID}.flac" -o flac -O always -d "${GITDIR}"; then
|
if ! printf '%s\n' ${breakpointList[@]} | shntool split -o flac -O always -d "${GITDIR}" "${GITDIR}/${IMAGEID}.flac" ; then
|
||||||
printf '%s\n' ${breakpointList[@]} | sed s/$/0/ | shntool split "${GITDIR}/${IMAGEID}.flac" -o flac -O always -d "${GITDIR}"
|
printf '%s\n' ${breakpointList[@]} | sed s/$/0/ | shntool split -o flac -O always -d "${GITDIR}" "${GITDIR}/${IMAGEID}.flac"
|
||||||
[[ $? -ne 0 ]] && return 1 || return 0
|
[[ $? -ne 0 ]] && return 1 || return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue