Update base_cli for windows if ENV['HOME'] is set
This commit is contained in:
parent
99a70f8a0a
commit
3257469a69
|
@ -47,7 +47,8 @@ class BaseCli < Thor
|
|||
# on Windows)
|
||||
def well_known_path_for(file)
|
||||
if OS.windows?
|
||||
File.join(ENV['APPDATA'], 'google', file)
|
||||
dir = ENV.fetch('HOME'){ ENV['APPDATA']}
|
||||
File.join(dir, 'google', file)
|
||||
else
|
||||
File.join(ENV['HOME'], '.config', 'google', file)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue