Unverified Commit 7cc7d7ab authored by Kroese's avatar Kroese Committed by GitHub
Browse files

remote_size

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