From: Matt Birkholz Date: Mon, 3 Jun 2024 22:21:36 +0000 (-0600) Subject: ./publish: Check for private network addresses. X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=b229a8662075f1a66d54861a959c7b43d5fd3142;p=Network ./publish: Check for private network addresses. The private addresses are provided by shell variables in a ../private/vars.sh file (not included). --- 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