[cmd_import_images] Finished function name change from cueripper to images

This commit is contained in:
ayakael 2018-05-18 13:53:03 -07:00
parent d829f8e8d3
commit 2663681ab3
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -1,25 +1,25 @@
#!/bin/bash #!/bin/bash
# doc cmd_import_cueripper { # doc cmd_import_images {
# #
# DESCRIPTION # DESCRIPTION
# cmd_import_cueripper - Imports output files from cueripper into GIT_DIR # cmd_import_images - Imports CD images into GIT_DIR
# #
# USAGE # USAGE
# cmd_import_cueripper </path/to/batch> [<...>] # cmd_import_images </path/to/image/folder> [<...>]
# #
# DEPENDENCIES import_cueripper # DEPENDENCIES import_images
# #
# } # }
cmd_import_cueripper() { cmd_import_images() {
local GIT_DIR="${1}"; shift local GIT_DIR="${1}"; shift
local dirList=("${@}") local dirList=("${@}")
for dir in ${dirList[@]}; do for dir in ${dirList[@]}; do
folderList=($(find "${dir}" -name '*.cue' -printf '%h\n' | awk '!seen[$0]++')) folderList=($(find "${dir}" -name '*.cue' -printf '%h\n' | awk '!seen[$0]++'))
for folder in ${folderList[@]}; do for folder in ${folderList[@]}; do
import_cueripper "${GIT_DIR}" "${folder}" import_images "${GIT_DIR}" "${folder}"
done done
done done
} }