From cb78fd227ecb2deba835cb423a6153e89c842cca Mon Sep 17 00:00:00 2001 From: Rob Loranger Date: Fri, 20 Sep 2019 10:17:58 -0700 Subject: [PATCH] use inline bash instead --- less/Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/less/Makefile b/less/Makefile index da6be71..1278c0a 100644 --- a/less/Makefile +++ b/less/Makefile @@ -1,9 +1,7 @@ CSSDIR=../static/css/ all : -ifeq (,$(shell command -v lessc 2> /dev/null)) -$(error "less is not installed, please run install-less.sh") -endif + @command -v lessc >/dev/null 2>&1 || { echo >&2 "less is not installed, please run install-less.sh."; exit 1; } lessc app.less --clean-css="--s1 --advanced" $(CSSDIR)write.css lessc fonts.less --clean-css="--s1 --advanced" $(CSSDIR)fonts.css lessc icons.less --clean-css="--s1 --advanced" $(CSSDIR)icons.css