Skip to content

Commit e355ced

Browse files
committed
Fixed the path to user profile
1 parent 16e6975 commit e355ced

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30336,7 +30336,7 @@ async function run() {
3033630336
options
3033730337
);
3033830338
} else {
30339-
let spath = process.platform === "darwin" ? "/Users/runner/.espressif/tools/" : "/home/runner/.espressif/tools/";
30339+
let spath = process.platform === "darwin" ? `${os.homedir()}/.espressif/tools/` : `${os.homedir()}/.espressif/tools/`;
3034030340
const files = await fs.promises.readdir(spath);
3034130341
const activationFile = files.find(
3034230342
(f) => f.startsWith("activate_") && f.endsWith(".sh")

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async function run() {
164164
options
165165
);
166166
} else {
167-
let spath = process.platform === "darwin" ? "/Users/runner/.espressif/tools/" : "/home/runner/.espressif/tools/";
167+
let spath = process.platform === "darwin" ? `${os.homedir()}/.espressif/tools/` : `${os.homedir()}/.espressif/tools/`;
168168
const files = await fs.promises.readdir(spath);
169169
const activationFile = files.find(
170170
(f) => f.startsWith("activate_") && f.endsWith(".sh")

0 commit comments

Comments
 (0)