X-Git-Url: http://git.scottworley.com/picsort/blobdiff_plain/7e0b085a9d4119886d17e66f57008e32d071cd5a..4ef7056e002ec60bc1ef09fb0d6e19d2dee009ed:/pic-mv?ds=sidebyside diff --git a/pic-mv b/pic-mv index e1e18ac..b84390c 100755 --- a/pic-mv +++ b/pic-mv @@ -34,10 +34,11 @@ 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 - sed -i "s/^# ROBOTS_INSERT_THINGS_HERE\$/&\n\"$name $number.jpeg\" => $rotate," "$destdir/rotations.php" + sed -i "s/^# ROBOTS_INSERT_THINGS_HERE\$/\"$name $number.jpeg\" => $rotate,\n&/" "$destdir/rotations.php" fi mv -vi "$file" "$out" fi