fix theme select
authorgc <gc>
Mon, 28 Mar 2005 18:17:45 +0000 (18:17 +0000)
committergc <gc>
Mon, 28 Mar 2005 18:17:45 +0000 (18:17 +0000)
bin/booh

index 12fdb70bbc31198f9f20cf58be391d8d5f88519b..58788bcfc6c30eca98ff285c44a32cc851c907dc 100755 (executable)
--- a/bin/booh
+++ b/bin/booh
@@ -94,7 +94,7 @@ def handle_options
 #                system("rm -rf #{$dest}")
 
             when '--theme'
-                select_theme(arg)
+                $theme = arg
             when '--config'
                 if File.readable?(arg)
                     $xmldoc = REXML::Document.new File.new(arg)
@@ -148,8 +148,9 @@ def handle_options
         die __("Missing --destination parameter.")
     end
     if !$theme
-        select_theme($theme = 'simple')
+        $theme = 'simple'
     end
+    select_theme($theme)
 
     if !$xmldoc
         $xmldoc = Document.new "<booh version='#{$VERSION}' source='#{utf8($source)}' destination='#{utf8($dest)}' theme='#{$theme}'/>"