Skip to content

Commit

Permalink
Merge 861b583 into af47627
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW authored May 11, 2023
2 parents af47627 + 861b583 commit 2bb4440
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gh-setup
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
set -e

repo="github.com/k1LoW/gh-setup"
tag="$(gh release list -R "$repo" --limit 1 | cut -f 1)"

extensionPath="$(dirname "$0")"
cd "${extensionPath}" > /dev/null
tag="$(git tag | tail -1)"
cd - > /dev/null

arch="$(uname -m)"

exe=""
Expand Down Expand Up @@ -36,6 +39,8 @@ if [ "${exe}" == "" ]; then
cd "${extensionPath}" > /dev/null
go build -o "${exe}" cmd/gh-setup/main.go
cd - > /dev/null
mv "${exe}" "${extensionPath}/bin/${exe}"
chmod +x "${extensionPath}/bin/${exe}"
else
if [[ ! -x "${extensionPath}/bin/${exe}" ]]; then
mkdir -p "${extensionPath}/bin"
Expand Down

0 comments on commit 2bb4440

Please sign in to comment.