]> git.scottworley.com Git - picsort/blobdiff - pic-mv
Copy the NEF's timestamp to the final .jpeg
[picsort] / 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
   else
     mv -vi "$exposure/$base.jpeg" "$out"
   fi
+  touch -r "$file" "$out"
   mv -vi "$file" "$destdir/$name $number.NEF"
 else
   if [[ "$rotate" ]];then
   mv -vi "$file" "$destdir/$name $number.NEF"
 else
   if [[ "$rotate" ]];then