support files with spaces
[booh] / booh
diff --git a/booh b/booh
index b0d5d506e3e3b2b5fbfa2f17c2a5a252b53bd2ee..f946f2c6cdfe8e99893edc4310252bed515ac91e 100755 (executable)
--- a/booh
+++ b/booh
@@ -158,7 +158,7 @@ def walk_source_dir
         msg 2, "\t#{videos.length} videos"
         
         dest_dir = dir.sub(/^#{Regexp.quote($source)}/, $dest)
-        system("mkdir -p #{dest_dir}")
+        system("mkdir -p '#{dest_dir}'")
         msg 2, "Outputting in #{dest_dir}..."
 
         final_images = []
@@ -175,7 +175,7 @@ def walk_source_dir
                 if orientation =~ /left - bottom/
                     convert_options += '-rotate -90 '
                 end
-                sys "#{$convert} #{convert_options}-geometry 704x528 #{img} #{dest_img}"
+                sys "#{$convert} #{convert_options}-geometry 704x528 '#{img}' '#{dest_img}'"
             end
         }