[import_images] Now gives a file name to consolidated files

This commit is contained in:
ayakael 2018-07-19 06:27:07 -08:00
parent 78e2f5ebd8
commit b421fa8309
No known key found for this signature in database
GPG key ID: 575626A4AE5F4026

View file

@ -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}/${DISCID}.$(sed 's|.*\.||' <<< ${path})"
done
}