fix ln operation on macos

This commit is contained in:
Michael Engel 2022-10-19 10:46:31 +02:00 committed by Janos Bonic
parent 88f47a96e9
commit fff0618065

View file

@ -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
}