Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
blylei committed Apr 18, 2023
1 parent dd1ece8 commit a222512
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ prepare_dir(){
}

get_latest(){
latestURL=$apiURL"/releases/latest"
version=$(curl "$latestURL" | grep "tag_name" | awk -F":" '{print #2}')
local latestURL=$apiURL"/releases/latest"
local version=$(curl -sX GET "$latestURL" | awk '/tag_name/{print $4;exit}' FS='[""]')
echo "$version"
reture 0
}
Expand Down

0 comments on commit a222512

Please sign in to comment.