diff --git a/cdist/conf/type/__line/gencode-remote b/cdist/conf/type/__line/gencode-remote index 8ac273e2..d381fb20 100755 --- a/cdist/conf/type/__line/gencode-remote +++ b/cdist/conf/type/__line/gencode-remote @@ -49,6 +49,10 @@ case "$state_should" in [ "$line" ] && regex="^$line\$" + # Replace all / with \/ + regex=$(echo "$regex" | sed 's;/;\\/;g') + echo $regex >&2 + cat << eof tmp=\$(mktemp) sed '/$regex/d' "$file" > \$tmp && cat "\$tmp" > "$file" && rm -f "\$tmp" diff --git a/docs/changelog b/docs/changelog index 03c464f0..d6baad60 100644 --- a/docs/changelog +++ b/docs/changelog @@ -7,6 +7,12 @@ Changelog 2.3.4: * Core: Add missing bits to support dry run (Steven Armstrong) * Core: Make unit test remote copy more compatible with scp (Steven Armstrong) + * New Type: __postfix (Steven Armstrong) + * New Type: __postfix_master (Steven Armstrong) + * New Type: __postfix_postconf (Steven Armstrong) + * New Type: __postfix_postmap (Steven Armstrong) + * New Type: __postfix_reload (Steven Armstrong) + * Type __line: Ensure regex does not contain / 2.3.3: 2013-09-09