mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 13:30:02 +08:00
Comparison
This commit is contained in:
parent
f4a32d99ed
commit
f9bb444b71
@ -38,8 +38,8 @@ function downloadUpdate {
|
||||
URL="https://raw.githubusercontent.com/kroese/virtual-dsm/master/agent/agent.sh"
|
||||
remote_size=$(curl -sIk -m 4 "${URL}" | grep -i "content-length:" | tr -d " \t" | cut -d ':' -f 2)
|
||||
|
||||
[ remote_size -eq 0 ] && return
|
||||
[ "$remote_size" == "" ] && return
|
||||
[ "$remote_size" == "0" ] && return
|
||||
|
||||
SCRIPT=$(readlink -f ${BASH_SOURCE[0]})
|
||||
local_size=$(stat -c%s "$SCRIPT")
|
||||
|
Loading…
x
Reference in New Issue
Block a user