X-Git-Url: https://iankelling.org/git/?p=cedit;a=blobdiff_plain;f=cedit;h=09d7b824df54f2c29075d7feb248804e70b34e64;hp=e6d373cde3907f5fb50663b23617f727525fe6e9;hb=fbda9b47041869aca20a660c1b46f5c76c2c2fcb;hpb=ea4ea4beebbe3d42e3016c8db246e8ad7d4aa20e diff --git a/cedit b/cedit index e6d373c..09d7b82 100755 --- a/cedit +++ b/cedit @@ -53,8 +53,15 @@ section. cedit is short for config edit. local file="$1" local file_name="${file##*/}" - local begin="#_#_# start delimiter of cedit section$name. do not modify. #_#_#" - local end="#_#_# end delimiter of cedit section$name. do not modify. #_#_#" + local comment + comment="#_#_#" + + # bind zone files use ; for comments yes, a little hacky detection. + if [[ $file_name == db.* ]]; then + comment=";;_;_;" + fi + local begin="$comment start delimiter of cedit section$name. do not modify. $comment" + local end="$comment end delimiter of cedit section$name. do not modify. $comment" if [[ ! -e $file_dir ]]; then if ! mkdir -p $file_dir; then