Remove inline comment in misc/tools.func
Co-authored-by: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com>
This commit is contained in:
parent
f2a847ac81
commit
62f68959c7
@ -1694,8 +1694,6 @@ function download_with_progress() {
|
|||||||
local content_length
|
local content_length
|
||||||
content_length=$(
|
content_length=$(
|
||||||
curl -fsSLI "$url" 2>/dev/null |
|
curl -fsSLI "$url" 2>/dev/null |
|
||||||
# May return multiple values on redirect. i.e., 0 and actual content-length value
|
|
||||||
# Add 0 to $2 to cast it to int
|
|
||||||
awk '(tolower($1) ~ /^content-length:/) && ($2 + 0 > 0) {print $2+0}' |
|
awk '(tolower($1) ~ /^content-length:/) && ($2 + 0 > 0) {print $2+0}' |
|
||||||
tail -1 | tr -cd '[:digit:]' || true
|
tail -1 | tr -cd '[:digit:]' || true
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user