From c889e93ddf587c2232ac396ecbaac447ba13587e Mon Sep 17 00:00:00 2001 From: naturallaw77 Date: Sat, 2 Dec 2023 12:48:53 -0800 Subject: [PATCH] updated updater fix --- .../Update_Sovran_SystemsOS.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 + + )