From f71626c7ecade5cf26baa9cb318cdd1c3d0c84c1 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Tue, 10 Aug 2010 22:25:11 +0200 Subject: now preventing commit when zero article (for real ^^) and push when fugitive.blog-url not set --- html-gen.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'html-gen.sh') diff --git a/html-gen.sh b/html-gen.sh index 7847a7d..d66dc12 100644 --- a/html-gen.sh +++ b/html-gen.sh @@ -36,8 +36,7 @@ for f in "$articles_dir"/*; do done | sort -nr | cut -d' ' -f2 > "$articles_sorted" if [ "`head -1 $articles_sorted`" = "" ]; then - echo "[fugitive] Need at least one article, aborting." >&2 - exit 1 + echo "[fugitive] WARNING: there's no article, errors may occur." >&2 fi articles_sorted_with_delete=`mktemp --suffix "-fugitive"` -- cgit v1.2.3