From b4cdb5fcc2b8f5cf0eb1140af099885540fe68ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20H=C3=B6tzel?= Date: Sun, 16 Jan 2022 20:14:32 +0100 Subject: [PATCH] =?UTF-8?q?Use=20user.home=20Java=20property=20to=20determ?= =?UTF-8?q?ine=20a=20user=E2=80=99s=20home=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This adds windows compatibility where the $HOME environment variable is not defined. --- src/clj_github/token.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clj_github/token.clj b/src/clj_github/token.clj index bd422dd..5d4ef18 100644 --- a/src/clj_github/token.clj +++ b/src/clj_github/token.clj @@ -12,7 +12,7 @@ (def hub-config (memoize (fn [] - (some-> (io/file (System/getenv "HOME") ".config/hub") + (some-> (io/file (System/getProperty "user.home") ".config/hub") file-exists-or-nil (slurp) yaml/parse-string