File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -210,9 +210,10 @@ git-check:
210210.PHONY : node-check
211211node-check :
212212 $(eval NODE_VERSION := $(shell printf "% 03d% 03d% 03d" $(shell node -v | cut -c2- | tr '.' ' ') ;) )
213+ $(eval MIN_NODE_VER_FMT := $(shell printf "% g.% g.% g" $(shell echo $(MIN_NODE_VERSION ) | grep -o ...) ) )
213214 $(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1) )
214215 @if [ " $( NODE_VERSION) " -lt " $( MIN_NODE_VERSION) " -o " $( NPM_MISSING) " = " 1" ]; then \
215- echo " Gitea requires Node.js 10 or greater and npm to build. You can get it at https://nodejs.org/en/download/" ; \
216+ echo " Gitea requires Node.js $( MIN_NODE_VER_FMT ) or greater and npm to build. You can get it at https://nodejs.org/en/download/" ; \
216217 exit 1; \
217218 fi
218219
You can’t perform that action at this time.
0 commit comments