With the new Raspbian 64bits, the version of curl installed doesn't shows a textual description of the response. you can replace line 37:
if [[ "${testCommand}" == *"OK"* || "${testCommand}" == *"Moved"* ]]
if [[ "${testCommand}" == *"200"* || "${testCommand}" == *"301"* ]]