summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2015-05-19 15:15:17 (GMT)
committerRichard Maw <richard.maw@codethink.co.uk>2015-05-19 15:19:01 (GMT)
commit235e95c3479f96b04d33edecc684f985bda50e53 (patch)
treefff6dd7a89d3375a1ab6ba46286723615ad8f80c
parent47fb728f2432929868666afc915dbc5a64836c08 (diff)
downloadtbdiff-235e95c3479f96b04d33edecc684f985bda50e53.tar.gz
Fix config sync failing if files in /etc contain \ characters
This is important, as systemd template units need to escape the characters after the @ with \ characters, and some of this config needs to go into /etc. Change-Id: I82d78281e65369f8164e370c6b7ae9f7e3a1423b
-rwxr-xr-xbaserock-system-config-sync/baserock-system-config-sync2
1 files changed, 1 insertions, 1 deletions
diff --git a/baserock-system-config-sync/baserock-system-config-sync b/baserock-system-config-sync/baserock-system-config-sync
index 061c86c..cb37a8a 100755
--- a/baserock-system-config-sync/baserock-system-config-sync
+++ b/baserock-system-config-sync/baserock-system-config-sync
@@ -79,7 +79,7 @@ merge() {
# use `find "$vp_dir/"*` instead of `find "$vp_dir"` because
# the last one also gives $vp_dir in the list of directories
- find "$vp_dir/"* | while read f; do
+ find "$vp_dir/"* | while read -r f; do
# echo "Processing $f"
# strip first component from file name
local stripped_filename=${f#$vp_dir/}