From 2b91ef238fc3a47ebb35f231c8f0df432e44dd6b Mon Sep 17 00:00:00 2001 From: Gitea Actions Date: Wed, 30 Apr 2025 15:59:03 +0000 Subject: [PATCH] Deploy version 1.0.2 --- dist/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index ab05c2a..4e7c1a3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26225,10 +26225,13 @@ function formatDuration(ms) { return parts.join(" "); } function expandPath(p) { - if (p.startsWith("~")) { - return import_path.default.join(os.homedir(), p.slice(1)); + if (p === "~") { + return os.homedir(); } - return p; + if (p.startsWith("~/") || p.startsWith("~\\")) { + p = import_path.default.join(os.homedir(), p.slice(2)); + } + return import_path.default.resolve(p); } // src/cache.ts