From d58b0a7c17ed201fe1000973b01d60e17d984105 Mon Sep 17 00:00:00 2001 From: A Holt Date: Thu, 19 Aug 2021 18:17:56 -0400 Subject: [PATCH] openvpn/templates/announcer: < 80 columns for readability, as much as poss --- roles/openvpn/templates/announcer | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/openvpn/templates/announcer b/roles/openvpn/templates/announcer index 17ddfb6d0..a8e11d2b1 100755 --- a/roles/openvpn/templates/announcer +++ b/roles/openvpn/templates/announcer @@ -6,7 +6,8 @@ # Empty string, worst case, e.g. whether var is set to "" (or not set at all!) HANDLE=$(grep "^openvpn_handle:\s" /etc/iiab/local_vars.yml | tail -1 | sed "s/^openvpn_handle:\s\+//; s/#.*//; s/\s*$//; s/^\(['\"]\)\(.*\)\1$/\2/") -# Change all spaces to underscores -- same as "s/ /_/g" -- /usr/bin/iiab-support emulates this, to help folks understand +# Change all spaces to underscores -- same as "s/ /_/g" +# /usr/bin/iiab-support emulates this, to help folks understand HANDLE=${HANDLE// /_} # Likewise empty string is the worst case, e.g. if file doesn't exist.