diff --git a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh index 41f70c9..a4fdf27 100755 --- a/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh +++ b/Sovran_SystemsOS_Updater/Updater Source Files/Update_Sovran_SystemsOS.sh @@ -3,7 +3,19 @@ set -o nounset -ID=$(dig @resolver4.opendns.com myip.opendns.com +short -4 || dig -t aaaa +short myip.opendns.com @resolver1.opendns.com) +ID=$( + + if dig @resolver4.opendns.com myip.opendns.com +short -4; then + + exit 1 + + else + + dig -t aaaa +short myip.opendns.com @resolver1.opendns.com + + fi + + )