Skip to content

Commit

Permalink
possible quick fix for false root
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Nov 24, 2019
1 parent 58ee383 commit adeb9e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/whimsy/asf/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class Config

if File.exist? "#@root/.whimsy"
@config.merge! YAML.load_file("#@root/.whimsy") || {}
@root = '/srv' unless Dir.exists? "#@root/whimsy"
end

# capture root
Expand Down

0 comments on commit adeb9e8

Please sign in to comment.