Quote $@ where needed
This commit is contained in:
		
							parent
							
								
									dfca1ede69
								
							
						
					
					
						commit
						8ee22f3038
					
				
					 3 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -29,8 +29,7 @@ contacts() {
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
modem_cmd_errcheck() {
 | 
			
		||||
	# shellcheck disable=SC2068
 | 
			
		||||
	RES="$(mmcli $@ 2>&1)"
 | 
			
		||||
	RES="$(mmcli "$@" 2>&1)"
 | 
			
		||||
	OK="$?"
 | 
			
		||||
	echo "Command: mmcli $*"
 | 
			
		||||
	if [ "$OK" != 0 ]; then fatalerr "Problem executing mmcli command!\n$RES"; fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue