From f99b432cd2e6b01fdf14922c3552a04cf1fb23df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 30 Oct 2022 17:01:10 +0000 Subject: [PATCH] Update install-uvtools.sh --- Scripts/install-uvtools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/install-uvtools.sh b/Scripts/install-uvtools.sh index 7133dcd..f4c55c8 100644 --- a/Scripts/install-uvtools.sh +++ b/Scripts/install-uvtools.sh @@ -39,7 +39,7 @@ downloaduvtools(){ echo "Downloading: $download_url" curl -L --retry 4 $download_url -o "$tmpfile" - download_size="$(curl -s -L -I $download_url | gawk -v IGNORECASE=1 '/^Content-Length/ { print $2 }' | tail -n1 | tr -d '\r')" + download_size="$(curl -sLI $download_url | grep -i Content-Length | tail -n1 | tr -d '\r')" if [ -n "$download_size" ]; then echo "- Validating file" local filesize="$(get_filesize "$tmpfile")"