[cmd_import_tracks] Migrated from import_dir to import_src

This commit is contained in:
ayakael 2018-07-12 17:09:38 -08:00
parent 8c47dfbb54
commit de578b9e5b
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -8,7 +8,7 @@
# USAGE
# cmd_import_tracks </path/to/git/dir> </path/to/dir_or_archive>
#
# DEPENDENCIES bunc/src/* src/import_track src/import_dir src/ismp3 src/iszip
# DEPENDENCIES bunc/src/* src/import_track src/import_src src/ismp3 src/iszip
#
# }
@ -42,7 +42,7 @@ cmd_import_tracks() {
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}" ${SOURCE} >${STDERR} 2>&1
import_src "${GIT_DIR}" "${import}" >${STDERR} 2>&1
local EXIT=$?
[[ ${EXIT} -eq 0 ]] && _msg OK || { _msg WARN "Importation of ${import} failed, continuing"; continue; }
rm -R ${import} >/dev/null 2>&1