mirror of
https://github.com/angristan/wireguard-install.git
synced 2024-11-27 23:36:01 +03:00
Fix tabulation for listClients() and revokeClient()
This commit is contained in:
parent
39caf2fcf6
commit
e19cd327c9
@ -391,7 +391,7 @@ function listClients() {
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -s ') '
|
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -w4 -s ') '
|
||||||
}
|
}
|
||||||
|
|
||||||
function revokeClient() {
|
function revokeClient() {
|
||||||
@ -404,7 +404,7 @@ function revokeClient() {
|
|||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "Select the existing client you want to revoke"
|
echo "Select the existing client you want to revoke"
|
||||||
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -s ') '
|
grep -E "^### Client" "/etc/wireguard/${SERVER_WG_NIC}.conf" | cut -d ' ' -f 3 | nl -w4 -s ') '
|
||||||
until [[ ${CLIENT_NUMBER} -ge 1 && ${CLIENT_NUMBER} -le ${NUMBER_OF_CLIENTS} ]]; do
|
until [[ ${CLIENT_NUMBER} -ge 1 && ${CLIENT_NUMBER} -le ${NUMBER_OF_CLIENTS} ]]; do
|
||||||
if [[ ${CLIENT_NUMBER} == '1' ]]; then
|
if [[ ${CLIENT_NUMBER} == '1' ]]; then
|
||||||
read -rp "Select one client [1]: " CLIENT_NUMBER
|
read -rp "Select one client [1]: " CLIENT_NUMBER
|
||||||
|
Loading…
Reference in New Issue
Block a user