diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2022-10-30 20:02:52 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2022-10-30 20:02:52 +0300 |
commit | 7759ddf98951e83e4852bc54433ad011e39695bc (patch) | |
tree | d74e34202f9539e3a71a50c4bbe79de8e823bcbd | |
parent | f99b432cd2e6b01fdf14922c3552a04cf1fb23df (diff) |
Update install-uvtools.sh
-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")" |