$HOME is not expanded

This commit is contained in:
Max Howell 2023-02-11 15:46:39 -05:00
parent 4528fa0d7d
commit 4ab112c592
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -31,9 +31,12 @@ type OS = string | string[]
const platform = Deno.env.get("PLATFORM") ?? panic("$PLATFORM not set")
const home = Deno.env.get("HOME")
const cacheSets = {
"darwin": "$HOME/Library/Caches/deno/deps/https/",
"linux": "$HOME/.cache/deno/deps/https/"
"darwin": `${home}/Library/Caches/deno/deps/https/`,
"linux": `${home}/.cache/deno/deps/https/`
}
const output: Output = (() => {