diff options
author | Manuel Messner | 2018-02-12 16:43:16 +0100 |
---|---|---|
committer | Manuel Messner | 2018-02-12 16:54:09 +0100 |
commit | e870a4771d533033e01799da1652361634ca8d67 (patch) | |
tree | 78e3abf75d5f36e4b8f8524ee02535b2669a5eb5 | |
parent | Makefile: fixup: add spacing (diff) | |
download | packer-templates-e870a4771d533033e01799da1652361634ca8d67.tar.gz packer-templates-e870a4771d533033e01799da1652361634ca8d67.tar.xz packer-templates-e870a4771d533033e01799da1652361634ca8d67.zip |
Makefile: check_rootpw: refactor
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |