]> git.scottworley.com Git - picsort/blobdiff - pic-mv
Extra newline at the end for easier copy/paste
[picsort] / pic-mv
diff --git a/pic-mv b/pic-mv
index 195b9596887487f8a68f1a83ae4e704c8705fd8b..b84390c80a307dc0984a02478edb5a26e5f67270 100755 (executable)
--- 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