Unverified Commit 33abaf1f authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Comparison

parent a0e29dea
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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")