forked from ungleich-public/cdist
bugfix: properly quote value in awk script
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
2ffd5c837b
commit
b7921451c2
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ DONE
|
|||
# change value
|
||||
cat << DONE
|
||||
awk -F "$delimiter" '
|
||||
/${key}${delimiter}*/{gsub(/$value_is/, $value_should)};{print}' "$file" > "${file}+" \
|
||||
/${key}${delimiter}*/{gsub(/$value_is/, "$value_should")};{print}' "$file" > "${file}+" \
|
||||
&& mv "${file}+" "$file"
|
||||
|
||||
DONE
|
||||
|
|
Loading…
Reference in a new issue