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:
210
210
.PHONY : node-check
211
211
node-check :
212
212
$(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 ...) ) )
213
214
$(eval NPM_MISSING := $(shell hash npm > /dev/null 2>&1 || echo 1) )
214
215
@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/" ; \
216
217
exit 1; \
217
218
fi
218
219
You can’t perform that action at this time.
0 commit comments