[import_images] Subfolder is now created with DISCID

This commit is contained in:
ayakael 2018-07-16 05:07:08 -08:00
parent d25f022ced
commit e641469897
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -48,7 +48,7 @@ import_images() {
local DISCID="$(grep "REM DISCID" ${TRACK_DIR}/cue | cut -d' ' -f3)"
# Copies path to import folder
mkdir -p "${GIT_DIR}/.import/${SOURCE}/$(dirname ${IMG} | sed 's|.*/||')"
mkdir -p "${GIT_DIR}/.import/${SOURCE}/${DISCID}"
for path in ${pathList[@]}; do
cp "${path}" "${GIT_DIR}/.import/${SOURCE}/${DISCID}/$(sed 's|.*/..||' <<< ${path})"
done