Quote $@ where needed
This commit is contained in:
		
							parent
							
								
									dfca1ede69
								
							
						
					
					
						commit
						8ee22f3038
					
				
					 3 changed files with 3 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -47,5 +47,4 @@ menu() {
 | 
			
		|||
	st -f Monospace-50 -e "$0" timerrun "$TIMEINPUT"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# shellcheck disable=SC2068
 | 
			
		||||
if [ $# -gt 0 ]; then $@; else menu; fi
 | 
			
		||||
if [ $# -gt 0 ]; then "$@"; else menu; fi
 | 
			
		||||
| 
						 | 
				
			
			@ -1,7 +1,6 @@
 | 
			
		|||
#!/usr/bin/env sh
 | 
			
		||||
 | 
			
		||||
pidof svkbd-sxmo >&2 || svkbd-sxmo &
 | 
			
		||||
# shellcheck disable=SC2068
 | 
			
		||||
OUTPUT="$(cat | dmenu $@)"
 | 
			
		||||
OUTPUT="$(cat | dmenu "$@")"
 | 
			
		||||
pkill svkbd-sxmo >&2
 | 
			
		||||
echo "$OUTPUT"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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