fix hosts

Signed-off-by: KickSeason <ztgoforit@163.com>
This commit is contained in:
KickSeason 2020-11-30 18:14:47 +08:00 committed by Stanislav Bogatyrev
parent a3b2dfbff3
commit ea32b6a7b0

View file

@ -54,14 +54,10 @@ down:
.PHONY: vendor/hosts
.ONESHELL:
vendor/hosts:
@for file in $(HOSTS_LINES)
do
while read h
do
echo $${h} | \
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
done < $${file};
@for file in $(HOSTS_LINES); do \
while read h; do \
echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
done < $${file}; \
done > $@
# Display changes for /etc/hosts