From 7759ddf98951e83e4852bc54433ad011e39695bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tiago=20Concei=C3=A7=C3=A3o?= Date: Sun, 30 Oct 2022 17:02:52 +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 f4c55c8..bf3147b 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 -sLI $download_url | grep -i Content-Length | tail -n1 | tr -d '\r')" + download_size="$(curl -sLI $download_url | grep -i Content-Length | awk 'END{print $2}' | tr -d '\r')" if [ -n "$download_size" ]; then echo "- Validating file" local filesize="$(get_filesize "$tmpfile")"