Update tools.func
This commit is contained in:
parent
83d3945545
commit
594828da08
@ -762,10 +762,13 @@ function download_with_progress() {
|
|||||||
local output="$2"
|
local output="$2"
|
||||||
|
|
||||||
if ! command -v pv &>/dev/null; then
|
if ! command -v pv &>/dev/null; then
|
||||||
$STD apt-get update
|
|
||||||
$STD apt-get install -y pv
|
$STD apt-get install -y pv
|
||||||
fi
|
fi
|
||||||
|
if [[ -n "${SPINNER_PID:-}" ]] && kill -0 "$SPINNER_PID" 2>/dev/null; then
|
||||||
|
kill "$SPINNER_PID" 2>/dev/null
|
||||||
|
wait "$SPINNER_PID" 2>/dev/null
|
||||||
|
unset SPINNER_PID
|
||||||
|
fi
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Content-Length aus HTTP-Header holen
|
# Content-Length aus HTTP-Header holen
|
||||||
|
Loading…
x
Reference in New Issue
Block a user