[gen_image] shntool will now be quiet

This commit is contained in:
ayakael 2018-05-18 18:41:46 -07:00
parent 1532dcf264
commit 0d6ca7be0e
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -18,14 +18,14 @@ gen_image() {
if [[ ${#fileList[@]} -eq 1 ]]; then
cat ${fileList[@]} > joined.flac
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
med_convert wav ${fileList[@]}
[[ $? -ne 0 ]] && return 1
echo ${fileList[@]}
fileList=($(printf '%s\n' ${fileList[@]} | sed 's|flac|wav|'))
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
return 2
fi