Skip to content

Commit 9d8abf0

Browse files
committed
wip
1 parent 7866618 commit 9d8abf0

1 file changed

Lines changed: 4 additions & 22 deletions

File tree

pkgm.ts

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -754,27 +754,9 @@ exec ${bin_prefix}/${name} "$@"
754754
`.trim();
755755
}
756756

757-
758757
function datadir() {
759-
const default_data_home = Deno.build.os == 'darwin' ? "/Library/Application Support" : "/.local/share";
760-
return `\${XDG_DATA_HOME:-$HOME${default_data_home}`;
758+
const default_data_home = Deno.build.os == "darwin"
759+
? "/Library/Application Support"
760+
: "/.local/share";
761+
return `\${XDG_DATA_HOME:-$HOME${default_data_home}}`;
761762
}
762-
763-
function platform_data_home_default() {
764-
const home = Path.home();
765-
switch (Deno.build.os) {
766-
case "darwin":
767-
return home.join("Library/Application Support");
768-
case "windows": {
769-
const LOCALAPPDATA = Deno.env.get("LOCALAPPDATA");
770-
if (LOCALAPPDATA) {
771-
return new Path(LOCALAPPDATA);
772-
} else {
773-
return home.join("AppData/Local");
774-
}
775-
}
776-
default:
777-
return home.join(".local/share");
778-
}
779-
}
780-

0 commit comments

Comments
 (0)