Allow calling numbers with + prefix
This commit is contained in:
		
							parent
							
								
									24d686eda3
								
							
						
					
					
						commit
						2a925ed1a0
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -73,7 +73,7 @@ dialmenu() {
 | 
			
		|||
	echo "$NUMBER" | grep "Close Menu" && kill 0
 | 
			
		||||
 | 
			
		||||
	NUMBER="$(echo "$NUMBER" | awk -F' ' '{print $NF}' | tr -d -)"
 | 
			
		||||
	echo "$NUMBER" | grep -qE '^[0-9]+$' || err "$NUMBER is not a number"
 | 
			
		||||
	echo "$NUMBER" | grep -qE '^[+0-9]+$' || err "$NUMBER is not a number"
 | 
			
		||||
 | 
			
		||||
	echo "Attempting to dial: $NUMBER" >&2
 | 
			
		||||
	VID="$(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue