Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
igtm committed Jan 2, 2023
1 parent aa6a4f6 commit 144cf35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@ os=$(get_os)
arch=$(get_arch)

# if not specified
if [[ ! "$version" ]]; then
if [ -z "$version" ]; then
# latest version: (eg: v1.0.0)
version=$(
command curl -sSf ${githubUrl}/${owner}/${repo}/releases |
command grep -o -E "/${owner}/${repo}/tree/(v[0-9]+\.){1}[0-9]+(\.[0-9]+)?" |
command grep -o -E "(v[0-9]+\.){1}[0-9]+(\.[0-9]+)?" |
command head -n 1
)
if [[ ! "$version" ]]; then exit 1; fi
if [ -z "$version" ]; then exit 1; fi
fi


Expand Down

0 comments on commit 144cf35

Please sign in to comment.