mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Escape dots in version string before grep-ing.
Less false positives that way. Signed-off-by: Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									7fcafe9c11
								
							
						
					
					
						commit
						487b83d714
					
				
					 1 changed files with 11 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -64,10 +64,20 @@ case $v in
 | 
			
		|||
		;;
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
saveIFS=$IFS
 | 
			
		||||
IFS=.
 | 
			
		||||
set -- $v
 | 
			
		||||
IFS=$saveIFS
 | 
			
		||||
v=
 | 
			
		||||
while [ $# -gt 0 ]; do
 | 
			
		||||
	v=${v:+$v\\.}$1
 | 
			
		||||
	shift
 | 
			
		||||
done
 | 
			
		||||
 | 
			
		||||
sts=0
 | 
			
		||||
whine "checking for version $v"
 | 
			
		||||
for f in $files; do
 | 
			
		||||
	grep $opts -EHio "(VERSION=|subsurface[[:blank:]]+)?\<v?$v\>" $f || {
 | 
			
		||||
	grep $opts -EHio "(VERSION=|subsurface[[:blank:]]+)?\<v?$v[.0-9]*\>" $f || {
 | 
			
		||||
		[ $release != y ] || sts=1
 | 
			
		||||
		whine "'$f' may need updating"
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue