Skip to content

Commit

Permalink
update installer to accept specified version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimryndin committed Feb 24, 2024
1 parent a7f129a commit 14c0d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/site/install.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ main() {

get_architecture || return 1
local _arch="$RETVAL"
local _version="0.1.3rc19"
local _version=${1:-'0.1.3rc20'}
assert_nz "$_arch" "arch"

local _file="goral-${_version}-${_arch}"
Expand Down Expand Up @@ -238,7 +238,7 @@ downloader() {
if [ -n "$_err" ]; then
echo "$_err" >&2
if echo "$_err" | grep -q 404$; then
err "installer for platform '$3' not found, this may be unsupported"
err "release for platform '$3' not found, this may be unsupported"
fi
fi
return $_status
Expand Down Expand Up @@ -268,7 +268,7 @@ downloader() {
if [ -n "$_err" ]; then
echo "$_err" >&2
if echo "$_err" | grep -q ' 404 Not Found$'; then
err "installer for platform '$3' not found, this may be unsupported"
err "release for platform '$3' not found, this may be unsupported"
fi
fi
return $_status
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,4 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./github/site
# Only deploy on a push to master, not on a pull request.
#if: !${{ env.PRERELEASE }} && github.repository == 'maksimryndin/goral'
if: github.repository == 'maksimryndin/goral'

0 comments on commit 14c0d50

Please sign in to comment.