Skip to content

Commit

Permalink
fix: Fix local cache dir detection on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
ribose-jeffreylau committed Nov 20, 2024
1 parent f249c35 commit 268b4b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/paneron/register/raw/register.rb
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def self.local_cache_path
)
else
File.join(
Dir.exist?(ENV["XDG_CACHE_HOME"]) ? ENV["XDG_CACHE_HOME"] : "~/.cache",
Dir.exist?(ENV["XDG_CACHE_HOME"].to_s) ? ENV["XDG_CACHE_HOME"] : "~/.cache",
"ruby-paneron-register",
)
end
Expand Down

0 comments on commit 268b4b7

Please sign in to comment.