From 9cb6e866157f75fcad114638ea6375b36e62f6bd Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Fri, 14 Jul 2017 04:35:47 +0000 Subject: [PATCH] check if build dir exists before chown Signed-off-by: Andrew Hsu (cherry picked from commit 46dd23f1fc2863741783f0584dad1a42815e5438) Signed-off-by: Andrew Hsu --- components/packaging/static/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/packaging/static/Makefile b/components/packaging/static/Makefile index ee22d8de20..0e339d54a7 100644 --- a/components/packaging/static/Makefile +++ b/components/packaging/static/Makefile @@ -14,7 +14,7 @@ help: ## show make targets @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {sub("\\\\n",sprintf("\n%22c"," "), $$2);printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) clean: ## remove build artifacts - $(CHOWN) -R $(shell id -u):$(shell id -g) build + [ ! -d build ] || $(CHOWN) -R $(shell id -u):$(shell id -g) build $(RM) -r build static: static-linux cross-mac cross-win cross-arm ## create all static packages