From 70cacd697bef4bbd800c5e52e2f0bd204d6dd1da Mon Sep 17 00:00:00 2001 From: Llewellyn van der Merwe Date: Tue, 25 Jul 2017 12:08:57 +0100 Subject: [PATCH] Changet the grep search to insure only the sub domain with old IP's is removed --- getip.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getip.sh b/getip.sh index fcacb61..ebe6bdc 100755 --- a/getip.sh +++ b/getip.sh @@ -236,7 +236,7 @@ function setDNS () { else tmpFile=$(getKey) # first remove old IPs - grep -v "^${row[1]}" "$FILEPATH" > "/tmp/vdm_$tmpFile" + grep -v "^${row[1]} " "$FILEPATH" > "/tmp/vdm_$tmpFile" # start notice echoTweak "DNS Adding A Record for IP (${row[2]})" echo "started"