mirror of
https://github.com/pivpn/pivpn.git
synced 2025-04-25 00:30:20 +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
|
@ -1,13 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
interface=$(ip -o link |
|
||||
awk '{print $2}' |
|
||||
cut -d ':' -f 1 |
|
||||
cut -d '@' -f 1 |
|
||||
grep -v -w 'lo' |
|
||||
head -1)
|
||||
ipaddress=$(ip addr show "${interface}" |
|
||||
grep -o -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}/[0-9]{2}")
|
||||
interface=$(ip -o link \
|
||||
| awk '{print $2}' \
|
||||
| cut -d ':' -f 1 \
|
||||
| cut -d '@' -f 1 \
|
||||
| grep -v -w 'lo' \
|
||||
| head -1)
|
||||
ipaddress=$(ip addr show "${interface}" \
|
||||
| grep -o -E "([0-9]{1,3}[\.]){3}[0-9]{1,3}/[0-9]{2}")
|
||||
gateway=$(ip route show | awk '/default/ {print $3}')
|
||||
hostname="pivpn.test"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue