Commit d77710f6 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

Print more debug info

parent 8a440e98
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -13,6 +13,8 @@ else
  PROGRESS="--progress=dot:giga"
fi

[ "$DEBUG" = "Y" ] && set -x

{ wget "$BOOT" -O "$TMP" -q --no-check-certificate --show-progress "$PROGRESS"; rc=$?; } || :
(( rc != 0 )) && echo "ERROR: Failed to download ${BOOT}, reason: $rc" && exit 60

@@ -27,3 +29,6 @@ fi
FILE="$STORAGE/boot.img"

mv -f "$TMP" "$FILE"

{ set +x; } 2>/dev/null
[ "$DEBUG" = "Y" ] && echo