diff --git a/cdist/conf/type/__lxc_container/gencode-remote b/cdist/conf/type/__lxc_container/gencode-remote index 42e1e43e..6bef504e 100755 --- a/cdist/conf/type/__lxc_container/gencode-remote +++ b/cdist/conf/type/__lxc_container/gencode-remote @@ -207,10 +207,10 @@ DONE # check if smth. to be deleted # must be before adding, because it takes the content of the original file # because 'cat $file > $file' will not work (> opens before command reads it) - # will create extended regex pattern for grep with malformed spaces + # will create a basic regex pattern for grep to ignore malformed spaces if [ -s "$__object/files/config.del" ]; then cat < "\$tmpconfig" +grep -v -f - <<'ABSENT' "$container_config" > "\$tmpconfig" $(awk -v FS=' = ' -v OFS=' = ' -v blank='[[:blank:]]*' ' function ntostring(n) { ret=""; for(i=n; i<=NF; i++) ret=ret $i (i