From f6af8723d0dd9f4118c7d4c650e8ecb427c5d723 Mon Sep 17 00:00:00 2001 From: Giuseppe Lettieri Date: Sun, 18 Aug 2013 11:00:58 +0200 Subject: [PATCH] take only the first address returned by host --- planetlab/exp-tool/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetlab/exp-tool/Makefile b/planetlab/exp-tool/Makefile index ef48321e8..9b36471ea 100644 --- a/planetlab/exp-tool/Makefile +++ b/planetlab/exp-tool/Makefile @@ -173,7 +173,7 @@ cache/status.%: FORCE cache/host.%: @echo "IP lookup for $(call display,$*)" - @host $(HOST_$*) | sed -n 's/^.*has address *//p' > $@ + @host $(HOST_$*) | sed -n '/^.*has address */{s///p;q}' > $@ cache/db.%: @echo "Starting db server on $(call display,$*) - logs in $(call log,$@)" -- 2.43.0