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 .PHONY: vendor/hosts
.ONESHELL: .ONESHELL:
vendor/hosts: vendor/hosts:
@for file in $(HOSTS_LINES) @for file in $(HOSTS_LINES); do \
do while read h; do \
while read h echo $${h}| sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'; \
do done < $${file}; \
echo $${h} | \
sed 's|IPV4_PREFIX|$(IPV4_PREFIX)|g' | \
sed 's|LOCAL_DOMAIN|$(LOCAL_DOMAIN)|g'
done < $${file};
done > $@ done > $@
# Display changes for /etc/hosts # Display changes for /etc/hosts