mirror of
https://github.com/GoTestTools/gotestfmt-action.git
synced 2026-02-18 05:31:47 +00:00
fix ln operation on macos
This commit is contained in:
parent
88f47a96e9
commit
9a70fef180
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")
|
execSync("cd /usr/local/lib/gotestfmt && sudo tar -xvzf /tmp/gotestfmt.tar.gz")
|
||||||
console.log("Removing tarball...")
|
console.log("Removing tarball...")
|
||||||
fs.unlinkSync("/tmp/gotestfmt.tar.gz")
|
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...")
|
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.")
|
console.log("Successfully set up gotestfmt.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue