[cmd_import_tracks] Fixed syntax errors
This commit is contained in:
parent
a21a78d66a
commit
0c457f0ac2
2 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,8 @@ cmd_import_tracks() {
|
|||
[[ ${EXIT} -eq 0 ]] && { _msg OK; local src="${_OPT_TMP}/$(basename ${src})"; } || _msg WARN
|
||||
fi
|
||||
local fileList=($(find "${src}" -name '*.flac' -o -name '*.mp3'))
|
||||
echo ${fileList[@]}
|
||||
|
||||
for file in ${fileList}; do
|
||||
for file in ${fileList[@]}; do
|
||||
_msg EXEC "Consolidating ${file}"
|
||||
import_track "${GIT_DIR}" "${file}" >${STDERR} 2>&1
|
||||
local EXIT=$?
|
||||
|
@ -34,7 +33,7 @@ cmd_import_tracks() {
|
|||
done
|
||||
done
|
||||
|
||||
local importList=($(find ${GIT_DIR}/.import/ -maxdepth 1 -type d -printf '%p\t'))
|
||||
local importList=($(find ${GIT_DIR}/.import/ -mindepth 1 -maxdepth 1 -type d -printf '%p\t'))
|
||||
for import in ${importList[@]}; do
|
||||
_msg EXEC "Importing ${import}"
|
||||
import_dir "${GIT_DIR}" "${import}" >${STDERR} 2>&1
|
||||
|
|
|
@ -30,6 +30,7 @@ gen_image() {
|
|||
return 2
|
||||
fi
|
||||
fi
|
||||
metaflac --remove-all --dont-use-padding "${TARGET_DIR}/joined.flac"
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue