[cmd_import_tracks] Migrated from import_dir to import_src
This commit is contained in:
parent
8c47dfbb54
commit
de578b9e5b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue