fix: remove -- from nmcli calls in moonarch-vpn
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 2s
All checks were successful
Update PKGBUILD version / update-pkgver (push) Successful in 2s
nmcli 1.56 treats -- as a connection name instead of end-of-options, causing "Unknown connection --" errors when toggling VPN connections.
This commit is contained in:
parent
24b81df63c
commit
047ff53091
@ -41,7 +41,7 @@ function connect_vpn() {
|
||||
local connection="$1"
|
||||
local feedback
|
||||
|
||||
if feedback=$(nmcli connection up -- "$connection" 2>&1); then
|
||||
if feedback=$(nmcli connection up "$connection" 2>&1); then
|
||||
notify-send "VPN" "Connected to '$connection'"
|
||||
else
|
||||
notify-send -u critical "VPN" "Connection failed: $feedback"
|
||||
@ -53,7 +53,7 @@ function disconnect_vpn() {
|
||||
local connection="$1"
|
||||
local feedback
|
||||
|
||||
if feedback=$(nmcli connection down -- "$connection" 2>&1); then
|
||||
if feedback=$(nmcli connection down "$connection" 2>&1); then
|
||||
notify-send "VPN" "Disconnected from '$connection'"
|
||||
else
|
||||
notify-send -u critical "VPN" "Disconnect failed: $feedback"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user