mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
openvpn/templates/announcer: < 80 columns for readability, as much as poss
This commit is contained in:
parent
201a8cd00c
commit
d58b0a7c17
1 changed files with 2 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue