From b9d639ebb92222c0959bef09936fdc6faf7b1ef2 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 28 Nov 2023 21:08:12 +0100 Subject: typo and makefile error --- content/blog/nix/managing-multiple-servers.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'content/blog') diff --git a/content/blog/nix/managing-multiple-servers.md b/content/blog/nix/managing-multiple-servers.md index e52debf..7d77991 100644 --- a/content/blog/nix/managing-multiple-servers.md +++ b/content/blog/nix/managing-multiple-servers.md @@ -147,7 +147,7 @@ run: mandatory-host-param ## make run host= .PHONY: update update: ## make update - nixos-channel --update + nix-channel --update ##### UTILS #################################################################### .PHONY: help @@ -157,10 +157,11 @@ help: .PHONY: mandatory-host-param mandatory-host-param: ifndef host - $(error host is not set) -endif + @echo "Error: host parameter is not set"; exit 1 +else ifeq ($(wildcard hosts/$(host)), ) - $(error host has no configuration in hosts/$(host)) + @echo "Error: host has no configuration in ./hosts/$(host)"; exit 1 +endif endif ``` -- cgit v1.2.3