From 235e95c3479f96b04d33edecc684f985bda50e53 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Tue, 19 May 2015 15:15:17 +0000 Subject: 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 --- baserock-system-config-sync/baserock-system-config-sync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/} -- cgit v1.2.1