Update install-uvtools.sh

This commit is contained in:
Tiago Conceição
2022-10-30 17:02:52 +00:00
parent f99b432cd2
commit 7759ddf989
+1 -1
View File
@@ -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")"