Browse Source

Better yui-compressor check

Volodymyr Tkach 2 years ago
parent
commit
5da255d126
2 changed files with 4 additions and 4 deletions
  1. 4 4
      assets.makefile
  2. 0 0
      test/test.css

+ 4 - 4
assets.makefile

@@ -10,10 +10,10 @@ FILES_CSS := $(shell find ${CURRENT_DIR} -type f -name '*.dev.css')
 FILES_JS := $(shell find ${CURRENT_DIR} -type f -name '*.dev.js')
 
 --check-yui-compressor:
-	ifndef CHECK_YUI_COMPRESSOR
-		# sudo apt-get install yui-compressor
-		$(error "yui-compressor is not installed")
-	endif
+	@if [ "${CHECK_YUI_COMPRESSOR}" = "" ]; then \
+		echo "Error: yui-compressor is not installed"; \
+		exit 1; \
+	fi
 
 --check-assets-sh-file:
 	@test -f assets.sh || (curl -fsSL -o assets.sh https://raw.githubusercontent.com/vladimirok5959/assets/main/assets.sh && chmod +x assets.sh)

File diff suppressed because it is too large
+ 0 - 0
test/test.css


Some files were not shown because too many files changed in this diff