SyntaxFix
Write A Post
Hire A Developer
Questions
If you're feeling lazy, here's a terse method of handling conditions using || (or) and && (and) after the operation:
||
&&
wget -q --tries=10 --timeout=20 --spider http://google.com || \ { echo "Sorry you are Offline" && exit 1; }