From: gc Date: Sat, 5 Mar 2005 13:36:14 +0000 (+0000) Subject: support files with spaces X-Git-Tag: 0.9.0~740 X-Git-Url: http://git.zarb.org/?p=booh;a=commitdiff_plain;h=37fc04a7de63ac39167acfd30aa27f455ef09a7d support files with spaces --- diff --git a/booh b/booh index b0d5d50..f946f2c 100755 --- 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 }