Skip to content

Commit

Permalink
v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper-oh committed Dec 22, 2024
1 parent 2664bd4 commit 4d9a25f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Empty file removed dist/.gitkeep
Empty file.
4 changes: 3 additions & 1 deletion gh-cherry-pick
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ case "${ARCH}" in
;;
esac

mkdir -p "${PROGRAM_ROOT}/dist"

if [[ "${OS}" == "unknown" || "${ARCH}" == "unknown" ]]; then
# Unsupported OS or Architecture. Run the script with go instead.
if ! command -v go >/dev/null; then
Expand All @@ -50,7 +52,7 @@ if [[ "${OS}" == "unknown" || "${ARCH}" == "unknown" ]]; then
(cd "${PROGRAM_ROOT}" && go build -o dist/gh-cherry-pick ./cmd/gh-cherry-pick)
exec "${PROGRAM_ROOT}/dist/gh-cherry-pick" "$@"
else
GH_CHERRY_PICK_VERSION="1.0.0"
GH_CHERRY_PICK_VERSION="2.0.0"
curl -sSL "https://github.com/134130/gh-cherry-pick/releases/download/v${GH_CHERRY_PICK_VERSION}/gh-cherry-pick-${GH_CHERRY_PICK_VERSION}-${OS}-${ARCH}.tar.gz" | tar -xz -C "${PROGRAM_ROOT}/dist" gh-cherry-pick
exec "${PROGRAM_ROOT}/dist/gh-cherry-pick" "$@"
fi

0 comments on commit 4d9a25f

Please sign in to comment.