diff options
-rw-r--r-- | Scripts/install-uvtools.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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")" |