[import_images] Now created folder in import dir

This commit is contained in:
ayakael 2018-07-12 19:40:17 -08:00
parent 64ddaaaeaa
commit 3ac1459e7d
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -43,8 +43,9 @@ import_images() {
done
# Copies path to import folder
mkdir -p "${GIT_DIR}/.import/${SOURCE}/$(dirname ${IMG})"
for path in ${pathList[@]}; do
cp "${path}" "${GIT_DIR}/.import/${SOURCE}/$(sed 's|.*/.||' <<< ${TRACK_DIR})"
cp "${path}" "${GIT_DIR}/.import/${SOURCE}/$(dirname ${IMG})/$(sed 's|.*/.||' <<< ${TRACK_DIR})"
done
}