From 3c571faab682d159e77d017b063b4aa8b3275da8 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Wed, 13 Jan 2021 13:25:37 +0300 Subject: [PATCH] Revert "fix hosts" This reverts commit ea32b6a7b0799faee4a1a73f05f910ed1c8e2cd0. As there is a way to upgrade GNU Make on macOS, this change is not needed. Signed-off-by: Stanislav Bogatyrev --- Makefile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index dc2dafd..b51af0f 100644 --- a/Makefile +++ b/Makefile @@ -52,11 +52,16 @@ down: $(foreach SVC, $(STOP_SVCS), $(shell docker-compose -f services/$(SVC)/docker-compose.yml 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