ok you donig good so far, but the code is incomplete, you need to scroll down use the "down arrow" on the keyboard there will be more code.
you see this
"- upgrade.cgi 1/219 0%"
it means you are now at Line no 1 out if 219 lines. you need to click the down arrow a few times until you find a part like this
f [ -f runme.sh ]; then