mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
parent
f9ec30cf3a
commit
53de3d04f9
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ module Fog
|
|||
# @return [String] The path for configuration_file
|
||||
def self.credentials_path
|
||||
@credential_path ||= begin
|
||||
path = ENV["FOG_RC"] || (ENV['HOME'] && '~/.fog')
|
||||
path = ENV["FOG_RC"] || (ENV['HOME'] && File.directory?(ENV['HOME']) && '~/.fog')
|
||||
File.expand_path(path) if path
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue