fix missing detection
authorgc <gc>
Sat, 2 Apr 2005 00:04:38 +0000 (00:04 +0000)
committergc <gc>
Sat, 2 Apr 2005 00:04:38 +0000 (00:04 +0000)
bin/booh

index a5cf023c413738e4a4394ecffb547862f34ab342..2bc65c8220493490a3cd80f316b42c8d5db3aef6 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -162,7 +162,8 @@ def check_installation
     if $no_check
         return
     end
     if $no_check
         return
     end
-    if missing = %w(convert identify exif transcode mencoder).delete_if { |prg| system("which #{prg} >/dev/null 2>/dev/null") }
+    missing = %w(convert identify exif transcode mencoder).delete_if { |prg| system("which #{prg} >/dev/null 2>/dev/null") }
+    if missing != []
         die _("The following programs are typically needed: `%s'. Re-run with --no-check if you're sure you're fine without them.") % missing.join(', ')
     end
 end
         die _("The following programs are typically needed: `%s'. Re-run with --no-check if you're sure you're fine without them.") % missing.join(', ')
     end
 end