guumaster / hostctl

Your dev tool to manage /etc/hosts like a pro!

Home Page:http://guumaster.github.io/hostctl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple "DO NOT EDIT" comments in etc/hosts

tokbes opened this issue · comments

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

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

Fixed on version v1.0.11