summaryrefslogtreecommitdiff
path: root/dcimtimestamp
diff options
context:
space:
mode:
authorStijn Buys <ingar@telenet.be>2022-08-28 11:58:34 +0200
committerStijn Buys <ingar@telenet.be>2022-08-28 11:58:34 +0200
commit3dd0b9d3a787524e2db1fc716f96811d713aab3a (patch)
tree307f33883910d74348aeda49fc3bf83e8b101c91 /dcimtimestamp
parent7329ffa21452841d5c5ef56d4f9ba150417f6f50 (diff)
Make dcimtimestamp operate as documented, added some comments on precision to dcimrename.HEADmaster
Diffstat (limited to 'dcimtimestamp')
-rwxr-xr-xdcimtimestamp8
1 files changed, 4 insertions, 4 deletions
diff --git a/dcimtimestamp b/dcimtimestamp
index d67ab20..629e4c2 100755
--- a/dcimtimestamp
+++ b/dcimtimestamp
@@ -1,7 +1,7 @@
#!/bin/sh
if [ -z "$1" ]; then
- echo "Set file modification time to EXIF timestamp"
+ echo "Set EXIF timestamp from file modification time"
echo "usage: $0 file1.jpg file2.jpg ..."
exit 0
fi
@@ -11,10 +11,10 @@ while [ ! -z "$1" ]; do
if [ `basename "${file}" ".jpg"`".jpg" = "${file}" ]; then
- echo "settimg modification time for $file"
+ echo "setting EXIF timestamp for $file"
- # set file timestamp from exif data
- exiftool "-DateTimeOriginal>FileModifyDate" "${file}"
+ # Write file modification time to EXIF timestamp
+ exiftool "-DateTimeOriginal<FileModifyDate" "${file}"
fi
shift