Skip to content

Instantly share code, notes, and snippets.

View tedeh's full-sized avatar

Tedde Lundgren tedeh

View GitHub Profile
@tedeh
tedeh / check_domains.sh
Created January 6, 2019 11:29
Gets a list of domains with curl, sending an email if the curl exit code is non-zero
#!/bin/bash
ERROR_EMAIL="billg@microsoft.com"
DOMAINS=(
"https://github.com"
)
ERRORED_DOMAINS=()