From ae2ec60ba79eddb9ac8667780593410fd6fd0b96 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Sat, 3 Dec 2022 23:16:38 +0100 Subject: [PATCH] process-photos: Rename *.JPG to *.jpg --- process-photos | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/process-photos b/process-photos index 14ee5b3..219edf3 100755 --- a/process-photos +++ b/process-photos @@ -1,7 +1,11 @@ #!/bin/sh set -eu -for f in *.jpg *.JPG; do +for f in *.JPG; do + mv "$f" "${f%JPG}jpg" +done + +for f in *.jpg; do echo "$f" chmod 644 "$f" info="$(exiv2 -Pnv "$f")" -- 2.39.5