[import_src] Fixed error handling for gen_image function
This commit is contained in:
parent
7892cd6135
commit
d24ebc669f
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ import_src() {
|
||||||
[[ $? -eq 0 ]] || return 4
|
[[ $? -eq 0 ]] || return 4
|
||||||
gen_image "${TRACK_DIR}/img.flac" $(printf "%s\t" ${fileList[@]})
|
gen_image "${TRACK_DIR}/img.flac" $(printf "%s\t" ${fileList[@]})
|
||||||
local EXIT="$?"
|
local EXIT="$?"
|
||||||
[[ $? -eq 0 ]] || return 3
|
[[ ${EXIT} -eq 0 ]] || return 3
|
||||||
;;
|
;;
|
||||||
CUETOOLS|EAC)
|
CUETOOLS|EAC)
|
||||||
med_integrity "${TRACK_DIR}/img.flac" >${STDERR} 2>&1
|
med_integrity "${TRACK_DIR}/img.flac" >${STDERR} 2>&1
|
||||||
|
@ -53,7 +53,7 @@ import_src() {
|
||||||
# Generate addmetaList and trackmetaList
|
# Generate addmetaList and trackmetaList
|
||||||
echo "Generating metadata"
|
echo "Generating metadata"
|
||||||
case ${SOURCE} in
|
case ${SOURCE} in
|
||||||
(FLAC)
|
FLAC)
|
||||||
local trackList=(${fileList[@]})
|
local trackList=(${fileList[@]})
|
||||||
local addmetaList=($(gen_metatrack ${trackList[@]}))
|
local addmetaList=($(gen_metatrack ${trackList[@]}))
|
||||||
local trackmetaList=($(print_meta_flac ${trackList[@]}))
|
local trackmetaList=($(print_meta_flac ${trackList[@]}))
|
||||||
|
|
Loading…
Reference in a new issue