forked from ungleich-public/cdist
		
	Merge pull request #676 from thriqon/675-line-dry-run
Handle missing files with __line (dry-run)
This commit is contained in:
		
				commit
				
					
						2f20b31758
					
				
			
		
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -39,6 +39,11 @@ else
 | 
			
		|||
   file="/$__object_id"
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ ! -f "$file" ]; then
 | 
			
		||||
  echo "file_missing"
 | 
			
		||||
  exit 0
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
awk -v position="$position" -v needle="$needle" '
 | 
			
		||||
function _find(_text, _pattern) {
 | 
			
		||||
   if (needle == "regex") {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue