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)
|
wrongvalue)
|
||||||
# change exisiting value
|
# 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\""
|
echo "mv \"$file.cdist-tmp\" \"$file\""
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in a new issue