mirror of
				https://github.com/f-droid/fdroidserver.git
				synced 2025-11-04 14:30:30 +03:00 
			
		
		
		
	pre-commit hook: use most compatible grep flags
The minimal test suite runs on Alpine use busybox grep, and BSD grep also often has different flags.
This commit is contained in:
		
							parent
							
								
									a87df29135
								
							
						
					
					
						commit
						8c4f75e05f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -129,7 +129,7 @@ for f in $RB_FILES; do
 | 
			
		|||
	fi
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
if grep --line-number 'shell=True' fdroidserver/[a-ce-z]*.py; then
 | 
			
		||||
if grep -C 3 'shell=True' fdroidserver/[a-ce-z]*.py; then
 | 
			
		||||
    err "shell=True is too dangerous, there are unfiltered user inputs!"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue