mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-21 23:00:17 +00:00
fix(installer): fix some code style errors
Fix some code style error about the pipelines
This commit is contained in:
parent
699f72712d
commit
e09f3a04bd
14 changed files with 316 additions and 309 deletions
|
@ -166,9 +166,9 @@ for ((ii = 0; ii < ${#CERTS_TO_REVOKE[@]}; ii++)); do
|
|||
# shellcheck disable=SC2154
|
||||
# Grab the client IP address
|
||||
NET_REDUCED="${pivpnNET::-2}"
|
||||
STATIC_IP="$(grep -v "^#" /etc/openvpn/ccd/"${CERTS_TO_REVOKE[ii]}" |
|
||||
grep -w ifconfig-push |
|
||||
grep -oE "${NET_REDUCED}\.[0-9]{1,3}")"
|
||||
STATIC_IP="$(grep -v "^#" /etc/openvpn/ccd/"${CERTS_TO_REVOKE[ii]}" \
|
||||
| grep -w ifconfig-push \
|
||||
| grep -oE "${NET_REDUCED}\.[0-9]{1,3}")"
|
||||
rm -rf /etc/openvpn/ccd/"${CERTS_TO_REVOKE[ii]}"
|
||||
|
||||
# disablung warning SC2154, $install_home sourced externally
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue