]> piware.de Git - bin.git/commitdiff
process-photos: Rename *.JPG to *.jpg
authorMartin Pitt <martin@piware.de>
Sat, 3 Dec 2022 22:16:38 +0000 (23:16 +0100)
committerMartin Pitt <martin@piware.de>
Sat, 3 Dec 2022 22:16:38 +0000 (23:16 +0100)
process-photos

index 14ee5b3eb6781e554135c7e1d2627845e413d295..219edf3e3521feeabff3374d1545f471e392601a 100755 (executable)
@@ -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")"