bugfix: properly quote value in awk script

Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
remotes/origin/archive_shell_function_approach
Steven Armstrong 14 years ago
parent 2ffd5c837b
commit b7921451c2
  1. 2
      conf/type/__key_value/gencode-remote

@ -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…
Cancel
Save