From 1adce055212263798ac4461d2151ce8c7f15096a Mon Sep 17 00:00:00 2001 From: Michael Engel Date: Wed, 19 Oct 2022 10:46:31 +0200 Subject: [PATCH] fix ln operation on macos --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 054e634..8b8b4ad 100644 --- a/index.js +++ b/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 }