Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Scripts/install-uvtools.sh2
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")"