wg-quick: unquote fwmark for bash 4.3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
f60ceb76e6
commit
6448d5557c
|
@ -79,7 +79,7 @@ add_if() {
|
||||||
}
|
}
|
||||||
|
|
||||||
del_if() {
|
del_if() {
|
||||||
DEFAULT_TABLE=$(("$(wg show "$INTERFACE" fwmark)"))
|
DEFAULT_TABLE=$(( $(wg show "$INTERFACE" fwmark) ))
|
||||||
if [[ $DEFAULT_TABLE -ne 0 ]]; then
|
if [[ $DEFAULT_TABLE -ne 0 ]]; then
|
||||||
while [[ -n $(ip -4 rule show table $DEFAULT_TABLE) ]]; do
|
while [[ -n $(ip -4 rule show table $DEFAULT_TABLE) ]]; do
|
||||||
cmd ip -4 rule delete table $DEFAULT_TABLE
|
cmd ip -4 rule delete table $DEFAULT_TABLE
|
||||||
|
|
Loading…
Reference in New Issue