Skip to content

Commit 0c00209

Browse files
committed
use msys2-location input in didTmateQuit and continueFileExists
1 parent e8c2820 commit 0c00209

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17638,12 +17638,12 @@ async function run() {
1763817638
}
1763917639

1764017640
function didTmateQuit() {
17641-
const tmateSocketPath = process.platform === "win32" ? "C:/msys64/tmp/tmate.sock" : "/tmp/tmate.sock"
17641+
const tmateSocketPath = process.platform === "win32" ? `${core.getInput("msys2-location") || "C:\\msys64"}/tmp/tmate.sock` : "/tmp/tmate.sock"
1764217642
return !external_fs_default().existsSync(tmateSocketPath)
1764317643
}
1764417644

1764517645
function continueFileExists() {
17646-
const continuePath = process.platform === "win32" ? "C:/msys64/continue" : "/continue"
17646+
const continuePath = process.platform === "win32" ? `${core.getInput("msys2-location") || "C:\\msys64"}/continue` : "/continue"
1764717647
return external_fs_default().existsSync(continuePath) || external_fs_default().existsSync(external_path_default().join(process.env.GITHUB_WORKSPACE, "continue"))
1764817648
}
1764917649

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,11 +252,11 @@ export async function run() {
252252
}
253253

254254
function didTmateQuit() {
255-
const tmateSocketPath = process.platform === "win32" ? "C:/msys64/tmp/tmate.sock" : "/tmp/tmate.sock"
255+
const tmateSocketPath = process.platform === "win32" ? `${core.getInput("msys2-location") || "C:\\msys64"}/tmp/tmate.sock` : "/tmp/tmate.sock"
256256
return !fs.existsSync(tmateSocketPath)
257257
}
258258

259259
function continueFileExists() {
260-
const continuePath = process.platform === "win32" ? "C:/msys64/continue" : "/continue"
260+
const continuePath = process.platform === "win32" ? `${core.getInput("msys2-location") || "C:\\msys64"}/continue` : "/continue"
261261
return fs.existsSync(continuePath) || fs.existsSync(path.join(process.env.GITHUB_WORKSPACE, "continue"))
262262
}

0 commit comments

Comments
 (0)