]> git.scottworley.com Git - picsort/blobdiff - picsorter.js
Extra newline at the end for easier copy/paste
[picsort] / picsorter.js
index 31ae640d9a2c25ace09ec644024c2c65758abbd2..f1847841dc052819c962b94e0d487093eca951fd 100644 (file)
@@ -152,7 +152,8 @@ function shell_escape(x) {
 function show_commands() {
   var commands = [];
   $.each(files, function(i, f) {
-    if ("name" in picinfo[f] && picinfo[f].name.length > 0) {
+    if ("name" in picinfo[f] && picinfo[f].name.length > 0 &&
+        !("deleted" in picinfo[f])) {
       var command = ["pic-mv"];
       if ("exposure" in picinfo[f]) {
         command.push("-e " + picinfo[f].exposure);
@@ -165,6 +166,7 @@ function show_commands() {
       commands.push(command.join(" "));
     }
   });
+  commands.push("");
   $("#shell_out").text(commands.join("\n")).show();
 }