aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-09-22 16:41:41 -0600
committernytpu <alex@nytpu.com>2021-09-22 16:41:41 -0600
commitfc290b31cee7168be69b9b6c001478373bd27fa8 (patch)
treef925ea88f62cea8d44e50f9f9fe2fe955074ba7b
parentadd randomize-images tool (diff)
downloadcheetah-bot-fc290b31cee7168be69b9b6c001478373bd27fa8.tar.bz2
cheetah-bot-fc290b31cee7168be69b9b6c001478373bd27fa8.zip
fox bug in randomize-images
-rwxr-xr-xtools/randomize-images.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/randomize-images.sh b/tools/randomize-images.sh
index 3e2e2b7..c8fa605 100755
--- a/tools/randomize-images.sh
+++ b/tools/randomize-images.sh
@@ -16,7 +16,8 @@ for file in ${files}; do
mogrify -resize 'x1000>' -- "${file}"
mogrify -resize '1500x>' -- "${file}"
extension="${file##*.}"
- mv -- "${file}" "D${cur}.${extension}"
+ day="$(printf "D%03d.%s" "${cur}" "${extension}")"
+ mv -- "${file}" "${day}"
cur=$((cur + 1))
done
printf "\rOrganized and downscaled %d Files. \n" "${cur}"