From f7348e4a6bb767f55ce3e5903efe5c37168db18b Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Sun, 5 Jan 2020 09:36:45 +0100 Subject: [PATCH] Update maza --- maza | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/maza b/maza index 82e5b22..22dbd52 100755 --- a/maza +++ b/maza @@ -64,27 +64,15 @@ update() { sed -i.bak 's/127.0.0.1 /address=\//g' "$CONFIG/$LIST_DNSMASQ" sed -i.bak 's/$/\/127.0.0.1/g' "$CONFIG/$LIST_DNSMASQ" ## Add start tag DNS list in first line - sed -i.bak "1i\\ - $AUTHOR - " "$CONFIG/$LIST" - sed -i.bak "1i\\ - $PROJECT - " "$CONFIG/$LIST" - sed -i.bak "1i\\ - $START_TAG - " "$CONFIG/$LIST" + sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST" + sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST" + sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST" ## Add end tag DNS list in first line echo $END_TAG >> "$CONFIG/$LIST" ## Add start tag DNS dnsmasq in first line - sed -i.bak "1i\\ - $AUTHOR - " "$CONFIG/$LIST_DNSMASQ" - sed -i.bak "1i\\ - $PROJECT - " "$CONFIG/$LIST_DNSMASQ" - sed -i.bak "1i\\ - $START_TAG - " "$CONFIG/$LIST_DNSMASQ" + sed -i.bak "1i\\$AUTHOR" "$CONFIG/$LIST_DNSMASQ" + sed -i.bak "1i\\$PROJECT" "$CONFIG/$LIST_DNSMASQ" + sed -i.bak "1i\\$START_TAG" "$CONFIG/$LIST_DNSMASQ" ## Add end tag DNS DNSMASQ in first line echo $END_TAG >> "$CONFIG/$LIST_DNSMASQ" # Remove temp file