[gen_image] shntool will now be quiet
This commit is contained in:
parent
1532dcf264
commit
0d6ca7be0e
1 changed files with 2 additions and 2 deletions
|
@ -18,14 +18,14 @@ gen_image() {
|
||||||
if [[ ${#fileList[@]} -eq 1 ]]; then
|
if [[ ${#fileList[@]} -eq 1 ]]; then
|
||||||
cat ${fileList[@]} > joined.flac
|
cat ${fileList[@]} > joined.flac
|
||||||
else
|
else
|
||||||
shntool join -O always ${fileList[@]} -d "${TARGET_DIR}" -o flac
|
shntool join -O always ${fileList[@]} -d "${TARGET_DIR}" -o flac -q
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
med_convert wav ${fileList[@]}
|
med_convert wav ${fileList[@]}
|
||||||
[[ $? -ne 0 ]] && return 1
|
[[ $? -ne 0 ]] && return 1
|
||||||
echo ${fileList[@]}
|
echo ${fileList[@]}
|
||||||
fileList=($(printf '%s\n' ${fileList[@]} | sed 's|flac|wav|'))
|
fileList=($(printf '%s\n' ${fileList[@]} | sed 's|flac|wav|'))
|
||||||
echo ${fileList[@]}
|
echo ${fileList[@]}
|
||||||
shntool join -O always ${fileList[@]} -d "${TARGET_DIR}" -o flac
|
shntool join -O always ${fileList[@]} -d "${TARGET_DIR}" -o flac -q
|
||||||
[[ $? -ne 0 ]] && return 1
|
[[ $? -ne 0 ]] && return 1
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue