]> git.scottworley.com Git - picsort/commitdiff
Copy the NEF's timestamp to the final .jpeg
authorScott Worley <scottworley@scottworley.com>
Sun, 2 Mar 2014 07:44:05 +0000 (23:44 -0800)
committerScott Worley <scottworley@scottworley.com>
Sun, 2 Mar 2014 07:44:05 +0000 (23:44 -0800)
pic-mv

diff --git a/pic-mv b/pic-mv
index e1e18ac09d531c05648510d7b7808fa5e0f6e7a5..195b9596887487f8a68f1a83ae4e704c8705fd8b 100755 (executable)
--- a/pic-mv
+++ b/pic-mv
@@ -34,6 +34,7 @@ if [[ "$file" == *.NEF ]];then
   else
     mv -vi "$exposure/$base.jpeg" "$out"
   fi
+  touch -r "$file" "$out"
   mv -vi "$file" "$destdir/$name $number.NEF"
 else
   if [[ "$rotate" ]];then