# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1526776808 -7200
# Node ID bf91de8901077e6ae778d9dc473644cbd5c058b3
# Parent  6529f762b819211dc4db1016db11ff341a2fc00f
GNUmakefile: Add a fallback for `hg files` not working in linter target

diff -r 6529f762b819 -r bf91de890107 GNUmakefile
--- a/GNUmakefile	Sat May 19 00:30:34 2018 +0200
+++ b/GNUmakefile	Sun May 20 02:40:08 2018 +0200
@@ -77,7 +77,7 @@
 	@echo "To inspect individual files run: luacov-console -l FILENAME"
 
 lint:
-	luacheck -q $$(hg files -I '**.lua') prosody prosodyctl
+	luacheck -q $$(hg files -I '**.lua' || echo core net util plugins) prosody prosodyctl
 	@echo $$(sed -n '/^exclude_files/,/^}/p;' .luacheckrc | sed '1d;$d' | wc -l) files ignored
 
 util/%.so: