[import_images] Fixed bug with cover consolidation
This commit is contained in:
parent
4a7b2c734b
commit
c48ff97322
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ cmd_import_images() {
|
|||
(jpg) local COVER="${fileList}" ;;
|
||||
esac
|
||||
done
|
||||
import_images "${GIT_DIR}" "${SOURCE}" "${IMG}" "${CUE}" $([[ -n "${ACCURIP}" ]] && echo "-a") "${ACCURIP}" $([[ -n "${LOG}" ]] && echo "-l") "${LOG}" $([[ -n "${JPG}" ]] && echo "-c") "${JPG}"
|
||||
import_images "${GIT_DIR}" "${SOURCE}" "${IMG}" "${CUE}" $([[ -n "${ACCURIP}" ]] && echo "-a") "${ACCURIP}" $([[ -n "${LOG}" ]] && echo "-l") "${LOG}" $([[ -n "${COVER}" ]] && echo "-c") "${COVER}"
|
||||
echo
|
||||
local EXIT=$?
|
||||
[[ ${EXIT} -eq 0 ]] && _msg OK || _msg WARN "Import_images exited with code ${EXIT}"
|
||||
|
|
|
@ -52,7 +52,7 @@ import_images() {
|
|||
rm -Rf "${GIT_DIR}/.import/${SOURCE}/${DISCID}" >/dev/null 2>&1
|
||||
mkdir -p "${GIT_DIR}/.import/${SOURCE}/${DISCID}"
|
||||
for path in ${pathList[@]}; do
|
||||
cp --no-preserve=mode "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*/..||' <<< ${path})"
|
||||
cp --no-preserve=mode "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*\.||' <<< ${path})"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue