Update run.sh

added online connectivity check. To test.