[cmd_import_images] [import_src] Now doesn't whine when import folder does not exist

This commit is contained in:
ayakael 2018-12-27 22:36:36 -05:00
parent ead0ac3776
commit 1fa74c76eb
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ cmd_import_images() {
# Import folders # 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 for import in ${importList[@]}; do
_msg EXEC "Importing ${import}" _msg EXEC "Importing ${import}"
import_src "${GIT_DIR}" "${import}" $([[ -n "${BATCHID}" ]] && echo "-b") ${BATCHID} >${STDERR} 2>&1 import_src "${GIT_DIR}" "${import}" $([[ -n "${BATCHID}" ]] && echo "-b") ${BATCHID} >${STDERR} 2>&1

View file

@ -24,7 +24,7 @@ import_src() {
[[ ! -d "${TRACK_DIR}" ]] && return 2 [[ ! -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 # Join trackList
echo "Processing audio files" echo "Processing audio files"