mirror of
https://github.com/pivpn/pivpn.git
synced 2025-05-14 03:44:11 +02: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
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
PLAT="$(grep -sEe '^NAME\=' /etc/os-release |
|
||||
sed -E -e "s/NAME\=[\'\"]?([^ ]*).*/\1/")"
|
||||
PLAT="$(grep -sEe '^NAME\=' /etc/os-release \
|
||||
| sed -E -e "s/NAME\=[\'\"]?([^ ]*).*/\1/")"
|
||||
|
||||
# dual protocol, VPN type supplied as $1
|
||||
VPN="${1}"
|
||||
|
@ -255,8 +255,8 @@ else
|
|||
fi
|
||||
|
||||
if [[ "${PLAT}" == 'Alpine' ]]; then
|
||||
if [[ "$(rc-service "${VPN_SERVICE}" status |
|
||||
sed -E -e 's/.*status\: (.*)/\1/')" == 'started' ]]; then
|
||||
if [[ "$(rc-service "${VPN_SERVICE}" status \
|
||||
| sed -E -e 's/.*status\: (.*)/\1/')" == 'started' ]]; then
|
||||
echo ":: [OK] ${VPN_PRETTY_NAME} is running"
|
||||
else
|
||||
ERR=1
|
||||
|
@ -271,8 +271,8 @@ if [[ "${PLAT}" == 'Alpine' ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
if rc-update show default |
|
||||
grep -sEe "\s*${VPN_SERVICE} .*" &> /dev/null; then
|
||||
if rc-update show default \
|
||||
| grep -sEe "\s*${VPN_SERVICE} .*" &> /dev/null; then
|
||||
echo -n ":: [OK] ${VPN_PRETTY_NAME} is enabled "
|
||||
echo "(it will automatically start on reboot)"
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue