From: Scott Worley Date: Sun, 2 Mar 2014 08:38:01 +0000 (-0800) Subject: Insert rotations in order, not reverse order X-Git-Url: http://git.scottworley.com/picsort/commitdiff_plain/4ef7056e002ec60bc1ef09fb0d6e19d2dee009ed?hp=f1b39471d1c70a9b47ef3716bbe5fc9591a70957 Insert rotations in order, not reverse order --- diff --git a/pic-mv b/pic-mv index 195b959..b84390c 100755 --- a/pic-mv +++ b/pic-mv @@ -38,7 +38,7 @@ if [[ "$file" == *.NEF ]];then 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