Skip to content

Commit

Permalink
set correct cache dir on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
malt3 committed Dec 1, 2024
1 parent 02a7bc2 commit 7398806
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/credential-helper
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,12 @@ install_base_hash() {
fi
}

cache_dir="${HOME}/.cache"
case "$(uname -s)" in
Linux*) cache_dir="${HOME}/.cache";;
Darwin*) cache_dir="${HOME}/Library/Caches";;
*) echo "Unknown OS $(uname -s) >&2"; exit 1;;
esac

if [ -n "${TEST_TMPDIR}" ]; then
cache_dir="${TEST_TMPDIR}"
fi
Expand Down

0 comments on commit 7398806

Please sign in to comment.