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() {
 | 
			
		||||
	DEFAULT_TABLE=$(("$(wg show "$INTERFACE" fwmark)"))
 | 
			
		||||
	DEFAULT_TABLE=$(( $(wg show "$INTERFACE" fwmark) ))
 | 
			
		||||
	if [[ $DEFAULT_TABLE -ne 0 ]]; then
 | 
			
		||||
		while [[ -n $(ip -4 rule show table $DEFAULT_TABLE) ]]; do
 | 
			
		||||
			cmd ip -4 rule delete table $DEFAULT_TABLE
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user