From b229a8662075f1a66d54861a959c7b43d5fd3142 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 3 Jun 2024 16:21:36 -0600 Subject: [PATCH] ./publish: Check for private network addresses. The private addresses are provided by shell variables in a ../private/vars.sh file (not included). --- publish | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/publish b/publish index 7b4f76e..a3e1010 100755 --- a/publish +++ b/publish @@ -2,13 +2,20 @@ # # ./publish [-f] +. ../private/vars.sh cd ~/Network/Abbey/ errs=0 -if ! grep -HnE '^[#*].*TODO|\?\?\?' Institute/README.org +if ! grep -HnEr $PUBLIC_VPN_NET +then errs=$(( $errs + 1 )); fi +if ! grep -HnEr $CAMPUS_VPN_NET +then errs=$(( $errs + 1 )); fi +if ! grep -HnEr $GATE_WIFI_NET then errs=$(( $errs + 1 )); fi +if ! grep -HnE '^[#*].*TODO|\?\?\?' Institute/README.org +then errs=$(( $errs + 1 )); fi if ! grep -HnE '^[*#].*TODO|\?\?\?' README.org then errs=$(( $errs + 1 )); fi -- 2.25.1