forked from ungleich-public/cdist
Bourne is not bash
see http://shebang.brandonmintern.com/bourne-is-not-bash-or-read-echo-and-backslash/ Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
49d9f1f475
commit
8aacbe2885
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