summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Messner2018-02-12 16:43:16 +0100
committerManuel Messner2018-02-12 16:54:09 +0100
commite870a4771d533033e01799da1652361634ca8d67 (patch)
tree78e3abf75d5f36e4b8f8524ee02535b2669a5eb5
parentMakefile: fixup: add spacing (diff)
downloadpacker-templates-e870a4771d533033e01799da1652361634ca8d67.tar.gz
packer-templates-e870a4771d533033e01799da1652361634ca8d67.tar.xz
packer-templates-e870a4771d533033e01799da1652361634ca8d67.zip
Makefile: check_rootpw: refactor
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 25e8a9d..ff85f78 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,12 @@ ifdef VERBOSE
endif
-check_rootpw = $(if $(strip $(ROOTPW)),,$(error No root password is set, set it as ROOTPW in your environment.))
+check_rootpw = $(if $(strip $(ROOTPW)),\
+ $(if $1,\
+ ,\
+ ),\
+ $(error No root password is set, set it as ROOTPW in your environment.) \
+)
.PHONY: help clean