guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!
http://guumaster.github.io/hostctl
MIT License
1.08k stars 47 forks source link

Multiple "DO NOT EDIT" comments in etc/hosts #65

Closed tokbes closed 4 years ago

tokbes commented 4 years ago

Describe the bug Every time when run add/replace commands hostctl is adding 1 more header

##################################################################
# Content under this line is handled by hostctl. DO NOT EDIT.
##################################################################

To Reproduce Steps to reproduce the behavior: just run hostctl replace -f /path/of/some/project/repo/.etchosts few times

Expected behavior don't add header if it's already exists

guumaster commented 4 years ago

Thanks for reporting this, I'll look into it.

guumaster commented 4 years ago

Fixed on version v1.0.11