Skip to content

Commit 019058c

Browse files
authored
format script
1 parent 48556e3 commit 019058c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/latest-stable

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ source "${plugin_dir}/lib/utils.bash"
1111
curl_opts=(-sI)
1212

1313
if [ -n "${GITHUB_API_TOKEN:-}" ]; then
14-
curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN")
14+
curl_opts=("${curl_opts[@]}" -H "Authorization: token $GITHUB_API_TOKEN")
1515
fi
1616

1717
redirect_url=$(curl "${curl_opts[@]}" "$REPO_URL/releases/latest" | sed -n -e "s|^location: *||p" | sed -n -e "s|\r||p")
1818
version=
1919
printf "redirect url: %s\n" "$redirect_url" >&2
2020
if [[ "$redirect_url" == "$REPO_URL/releases" ]]; then
21-
version="$(list_github_releases | sort_versions | tail -n1 | xargs echo)"
21+
version="$(list_github_releases | sort_versions | tail -n1 | xargs echo)"
2222
else
23-
version="$(printf "%s\n" "$redirect_url" | sed 's|.*/tag/bun-v||')"
23+
version="$(printf "%s\n" "$redirect_url" | sed 's|.*/tag/bun-v||')"
2424
fi
2525

2626
printf "%s\n" "$version"

0 commit comments

Comments
 (0)