mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-08 00:37:27 +00:00
fix ln operation on macos
This commit is contained in:
parent
4dada5bd86
commit
1adce05521
1 changed files with 3 additions and 1 deletions
4
index.js
4
index.js
|
|
@ -24,8 +24,10 @@ async function downloadRelease(octokit, org, repo, release, token) {
|
|||
execSync("cd /usr/local/lib/gotestfmt && sudo tar -xvzf /tmp/gotestfmt.tar.gz")
|
||||
console.log("Removing tarball...")
|
||||
fs.unlinkSync("/tmp/gotestfmt.tar.gz")
|
||||
console.log("Creating /usr/local/bin directory if it does not exist already...")
|
||||
execSync("sudo mkdir -p /usr/local/bin")
|
||||
console.log("Linking gotestfmt...")
|
||||
execSync("sudo ln -s /usr/local/lib/gotestfmt/gotestfmt /usr/bin/gotestfmt")
|
||||
execSync("sudo ln -s /usr/local/lib/gotestfmt/gotestfmt /usr/local/bin/gotestfmt")
|
||||
console.log("Successfully set up gotestfmt.")
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue