From 6474d57b432c08c502d612b10a74836480b2f51e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 4 Jun 2023 21:55:35 -0500 Subject: [PATCH] Update update-dns.sh --- update-dns.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/update-dns.sh b/update-dns.sh index 1ba720c..b132ab1 100755 --- a/update-dns.sh +++ b/update-dns.sh @@ -8,8 +8,12 @@ fi echo read -n 1 -p "Do you wish to continue changing the DNS? (Y/n) " choice +echo case "$choice" in -[Nn]) exit 0; ;; +[Nn]) + echo -e "${Green}The DNS servers have NOT been updated${Color_Off}" + exit 0 + ;; * ) if [ -f /etc/netplan/eth0.yaml ]; then sed -i 's/10.5.10.5,10.10.10.10/10.10.10.10,10.10.10.11/g' /etc/netplan/eth0.yaml @@ -31,7 +35,9 @@ case "$choice" in /usr/sbin/service networking restart cat /etc/network/interfaces - fi;; + fi + echo -e "${Green}The DNS servers have been updated${Color_Off}" + ;; esac echo