Update tools.func

This commit is contained in:
CanbiZ 2025-04-29 09:59:07 +02:00
parent 970e375a35
commit 83ed0e1c8e

View File

@ -764,11 +764,7 @@ function download_with_progress() {
if ! command -v pv &>/dev/null; then if ! command -v pv &>/dev/null; then
$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 stop_spinner
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