bugfix: properly quote value in awk script

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
Steven Armstrong 2011-06-16 22:52:18 +02:00
parent 2ffd5c837b
commit b7921451c2

View file

@ -41,7 +41,7 @@ DONE
# change value # change value
cat << DONE cat << DONE
awk -F "$delimiter" ' 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" && mv "${file}+" "$file"
DONE DONE