From ea468604d36257d182580d689035379b7ff8d78e Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 15 Jun 2017 19:57:54 +0200 Subject: make deploy: use whatsupnix if it exists --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 09f6eafd..ce6205c5 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,12 @@ deploy: $(MAKE) populate debug=false $(ssh) $(target_user)@$(target_host) -p $(target_port) \ env STOCKHOLM_VERSION="$$STOCKHOLM_VERSION" \ - nixos-rebuild $(rebuild-command) --show-trace -I $(target_path) + nixos-rebuild -Q $(rebuild-command) --show-trace -I $(target_path) \ + |& if type whatsupnix 2>/dev/null; then \ + whatsupnix $(target_user)@$(target_host):$(target_port); \ + else \ + cat; \ + fi # usage: make populate system=foo populate: populate-target = \ -- cgit v1.2.3