diff --git a/src/cmd_import_images b/src/cmd_import_images index 06b0be0..cfce7b7 100644 --- a/src/cmd_import_images +++ b/src/cmd_import_images @@ -54,7 +54,7 @@ cmd_import_images() { # Import folders - local importList=($(find ${GIT_DIR}/.import/${SOURCE}/ -mindepth 1 -maxdepth 1 -type d -printf '%p\t')) + local importList=($(find ${GIT_DIR}/.import/${SOURCE}/ -mindepth 1 -maxdepth 1 -type d -printf '%p\t' 2>/dev/null)) for import in ${importList[@]}; do _msg EXEC "Importing ${import}" import_src "${GIT_DIR}" "${import}" $([[ -n "${BATCHID}" ]] && echo "-b") ${BATCHID} >${STDERR} 2>&1 diff --git a/src/import_src b/src/import_src index 4ad5aa3..f6e9c1c 100644 --- a/src/import_src +++ b/src/import_src @@ -24,7 +24,7 @@ import_src() { [[ ! -d "${TRACK_DIR}" ]] && return 2 - local fileList=($(find ${TRACK_DIR} -maxdepth 1 -name '*.flac' -printf '%p\n' | sort)) + local fileList=($(find ${TRACK_DIR} -maxdepth 1 -name '*.flac' -printf '%p\n' 2>/dev/null | sort)) # Join trackList echo "Processing audio files"