remote_size

This commit is contained in:
Kroese 2023-04-17 20:55:50 +02:00 committed by GitHub
parent c898e0c763
commit 5283c8c29f

View File

@ -40,7 +40,7 @@ function downloadUpdate {
remote_size=$(curl -sIk -m 4 "${URL}" | grep -i "content-length:" | tr -d " \t" | cut -d ':' -f 2)
remote_size=${remote_size//$'\r'}
if [ "$remote_size" == "" || "$remote_size" == "0" ] && return
[ "$remote_size" == "" || "$remote_size" == "0" ] && return
SCRIPT=$(readlink -f ${BASH_SOURCE[0]})
local_size=$(stat -c%s "$SCRIPT")