From 371a231e4ab6edd5dc7a98ba50df8228ac6552b2 Mon Sep 17 00:00:00 2001 From: Steven van den Broek Date: Sun, 18 Jul 2021 21:24:55 +0200 Subject: [PATCH] Last fix --- .github/scripts/install-ghr.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/scripts/install-ghr.sh b/.github/scripts/install-ghr.sh index 631463f..a3b56bc 100755 --- a/.github/scripts/install-ghr.sh +++ b/.github/scripts/install-ghr.sh @@ -18,11 +18,12 @@ else else ARCH="darwin" URL="https://github.com/tcnksm/ghr/releases/download/v0.14.0/ghr_v0.14.0_${ARCH}_amd64.zip" - curl -L ${URL} > ghr-dir.zip - unzip ghr-dir.zip - mv ghr-dir/ghr "$HOME/.local/bin/" - rm ghr-dir.zip - rm ghr-dir -r + curl -L ${URL} > ghr.zip + unzip ghr.zip + GHR_DIR="ghr_v0.14.0_${ARCH}_amd64" + mv GHR_DIR/ghr "$HOME/.local/bin/" + rm ghr.zip + rm GHR_DIR -r fi ls "$HOME/.local/bin/" fi