Skip to content

Commit

Permalink
fix: one liner script doesn't work on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
0xAzureDev committed Sep 15, 2023
1 parent f02e15d commit 85b2ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/one_liner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ main() {

url="$url/releases"

tag=$(curl -Ls -w %{url_effective} -o /dev/null "$url/latest" | cut -d'"' -f2 | rev | cut -d'/' -f1 | rev)
tag=$(curl -Ls -w %{url_effective} -o /dev/null "$url/latest" | awk -F'tag/' '{print $2}')
say_err "Tag: latest ($tag)"

# detect host architecture
Expand Down

0 comments on commit 85b2ddd

Please sign in to comment.