From 0c457f0ac2ec4caba5080330dc10be68e3968a0f Mon Sep 17 00:00:00 2001 From: ayakael Date: Fri, 18 May 2018 19:23:36 -0700 Subject: [PATCH] [cmd_import_tracks] Fixed syntax errors --- src/cmd_import_tracks | 5 ++--- src/gen_image | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd_import_tracks b/src/cmd_import_tracks index 790d8ae..4f100fe 100644 --- a/src/cmd_import_tracks +++ b/src/cmd_import_tracks @@ -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 diff --git a/src/gen_image b/src/gen_image index 1c891cf..79df364 100644 --- a/src/gen_image +++ b/src/gen_image @@ -30,6 +30,7 @@ gen_image() { return 2 fi fi + metaflac --remove-all --dont-use-padding "${TARGET_DIR}/joined.flac" return 0 }