2 BTC bounty for improving performance of Bitsquare on Raspberry Pi

I don’t think this script works. It’s quitting every time I run it because it’s unable to get to the Oracle downloads page for jdk7. Am I missing something here?