From 5154b86f6e9938b74f947de4bc2282ff56aec348 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Tue, 31 May 2011 00:38:21 +0200 Subject: fix bug due to the sort command ignoring whitespace... everywhere --- html-gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'html-gen.sh') diff --git a/html-gen.sh b/html-gen.sh index 3ad6236..40ac0cc 100644 --- a/html-gen.sh +++ b/html-gen.sh @@ -34,7 +34,7 @@ for f in "$articles_dir"/*; do if [ "$ts" != "" ]; then echo "$ts ${f#$articles_dir/}" fi -done | sort -nr | cut -d' ' -f2 > "$articles_sorted" +done | sort -k1,1nr | cut -d' ' -f2 > "$articles_sorted" if [ "`head -1 $articles_sorted`" = "" ]; then echo "[fugitive] WARNING: there's no article, errors may occur." >&2 -- cgit v1.2.3