Remove inline comment in misc/alpine-tools.func

Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
This commit is contained in:
Justin 2026-01-28 15:48:21 +00:00 committed by Michel Roegl-Brunner
parent 75898f4986
commit f2a847ac81

View File

@ -201,8 +201,6 @@ download_with_progress() {
content_length=$(
curl -fsSLI "$url" 2>/dev/null |
# May return multiple values on redirect. i.e., 0 and actual content-length value
# Cast $2 to int by adding 0 to it
awk '(tolower($1) ~ /^content-length:/) && ($2 + 0 > 0) {print $2+0}' |
tail -1 | tr -cd '[:digit:]' || true
)