Merge branch 'issue_191' of https://github.com/asteven/cdist
This commit is contained in:
		
				commit
				
					
						91cf68363b
					
				
			
		
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -46,7 +46,8 @@ case "$state_should" in | |||
|             ;; | ||||
|             wrongvalue) | ||||
|                 # change exisiting value | ||||
|                 echo "sed \"s|^$key\($delimiter\+\).*|$key\1$value|\" \"$file\" > \"$file.cdist-tmp\"" | ||||
|                 printf 'sed "s|^%s\(%s\+\).*|%s\\1%s|" "%s" > "%s.cdist-tmp"\n' \ | ||||
|                     "$key" "$delimiter" "$key" "$value" "$file" "$file" | ||||
|                 echo "mv \"$file.cdist-tmp\" \"$file\"" | ||||
|             ;; | ||||
|             *) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue