Skip to content

Commit

Permalink
Update base_cli for windows if ENV['HOME'] is set
Browse files Browse the repository at this point in the history
  • Loading branch information
dsisnero committed Jan 16, 2016
1 parent 99a70f8 commit 3257469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/lib/base_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ def token_store_path
# 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
Expand Down

0 comments on commit 3257469

Please sign in to comment.