From f1b39471d1c70a9b47ef3716bbe5fc9591a70957 Mon Sep 17 00:00:00 2001
From: Scott Worley <scottworley@scottworley.com>
Date: Sun, 2 Mar 2014 00:05:07 -0800
Subject: [PATCH] shell_out shouldn't list deleted pics

---
 picsorter.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/picsorter.js b/picsorter.js
index 31ae640..e8a92a2 100644
--- a/picsorter.js
+++ b/picsorter.js
@@ -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);
-- 
2.47.2