Merge branch 'issue/372' of https://github.com/asteven/cdist
This commit is contained in:
		
				commit
				
					
						38d27d8769
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -78,7 +78,7 @@ fi
 | 
				
			||||||
# Determine the current state
 | 
					# Determine the current state
 | 
				
			||||||
entry="$(cat "$__object/files/should")"
 | 
					entry="$(cat "$__object/files/should")"
 | 
				
			||||||
state_should="$(cat "$__object/parameter/state")"
 | 
					state_should="$(cat "$__object/parameter/state")"
 | 
				
			||||||
num_existing_entries=$(grep -c -F -x "$entry" "$__object/explorer/entry")
 | 
					num_existing_entries=$(grep -c -F -x "$entry" "$__object/explorer/entry" || true)
 | 
				
			||||||
if [ $num_existing_entries -eq 1 ]; then
 | 
					if [ $num_existing_entries -eq 1 ]; then
 | 
				
			||||||
   state_is="present"
 | 
					   state_is="present"
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue