diff options
author | nytpu <alex@nytpu.com> | 2021-09-22 16:41:41 -0600 |
---|---|---|
committer | nytpu <alex@nytpu.com> | 2021-09-22 16:41:41 -0600 |
commit | fc290b31cee7168be69b9b6c001478373bd27fa8 (patch) | |
tree | f925ea88f62cea8d44e50f9f9fe2fe955074ba7b | |
parent | add randomize-images tool (diff) | |
download | cheetah-bot-fc290b31cee7168be69b9b6c001478373bd27fa8.tar.bz2 cheetah-bot-fc290b31cee7168be69b9b6c001478373bd27fa8.zip |
fox bug in randomize-images
-rwxr-xr-x | tools/randomize-images.sh | 3 |
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}" |