Don't treat non-directory arguments as paths.
This commit is contained in:
parent
ab3664fda6
commit
162be6b411
@ -54,7 +54,15 @@ module Cask
|
||||
end
|
||||
|
||||
def self.canonicalize(config)
|
||||
config.map { |k, v| [k.to_sym, Pathname(v).expand_path] }.to_h
|
||||
config.map do |k, v|
|
||||
key = k.to_sym
|
||||
|
||||
if DEFAULT_DIRS.key?(key)
|
||||
[key, Pathname(v).expand_path]
|
||||
else
|
||||
[key, v]
|
||||
end
|
||||
end.to_h
|
||||
end
|
||||
|
||||
attr_accessor :explicit
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user