Skip to content

Commit

Permalink
Don't fail if there's no profile.
Browse files Browse the repository at this point in the history
  • Loading branch information
bobmcwhirter committed May 4, 2012
1 parent dc7e53d commit 00b08fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/awestruct/cli/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(config, profile=nil, base_url=nil, default_base_url='http://local
def run()
begin
puts "Generating site"
@engine.run( @profile, @base_url, @profile['base_url'] || @default_base_url, @force )
@engine.run( @profile, @base_url, ( @profile ? @profile['base_url'] : @default_base_url ), @force )
rescue =>e
puts e
puts e.backtrace
Expand Down

0 comments on commit 00b08fb

Please sign in to comment.