It seems to rely on the GNU version of sed, but e.g. macOS and Alpine don't provide this. In addition, sudo must be present, which isn't universally the case.
The new script is tested to work on macOS, Debian, and Alpine, and doesn't require sudo or GNU sed.
The hubbub branch will have its subdomains added to the list when merging.
Replaces the broken
update-host-file.sh
script with a simpler one that actually works.The documentation asks to run a very buggy script to update the /etc/hosts. One such run on macOS:
In Debian, if a block is already present (the first run works, but prints garbage):
It seems to rely on the GNU version of sed, but e.g. macOS and Alpine don't provide this. In addition, sudo must be present, which isn't universally the case.
The new script is tested to work on macOS, Debian, and Alpine, and doesn't require sudo or GNU sed.
The
hubbub
branch will have its subdomains added to the list when merging.