[cmd_import_images] [import_src] Now doesn't whine when import folder does not exist
This commit is contained in:
parent
ead0ac3776
commit
1fa74c76eb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue