no need to double escape a trailing $; $ by itself is not special in any way
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
		
					parent
					
						
							
								fff5e48266
							
						
					
				
			
			
				commit
				
					
						3dbe375837
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,7 @@ tmpfile=\$(mktemp ${file}.cdist.XXXXXXXXXX)
 | 
			
		|||
if [ -f "$file" ]; then
 | 
			
		||||
   cp -p "$file" "\$tmpfile"
 | 
			
		||||
fi
 | 
			
		||||
awk -v prefix="^$prefix\\\$" -v suffix="^$suffix\\\$" '
 | 
			
		||||
awk -v prefix="^$prefix\$" -v suffix="^$suffix\$" '
 | 
			
		||||
{
 | 
			
		||||
   if (match(\$0,prefix)) {
 | 
			
		||||
      triggered=1
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue