From ac6e67b1e07499e61fd5af0434c64ed606d58045 Mon Sep 17 00:00:00 2001 From: p4bl0 Date: Tue, 31 May 2011 00:04:41 +0200 Subject: fix bug due to the sort command ignoring whitespace --- html-gen.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-gen.sh b/html-gen.sh index ea9328f..3ad6236 100644 --- a/html-gen.sh +++ b/html-gen.sh @@ -46,7 +46,7 @@ for f in "$articles_dir"/* $deleted_files; do if [ "$ts" != "" ]; then echo "$ts ${f#$articles_dir/}" fi -done | sort -nr | cut -d' ' -f2 > "$articles_sorted_with_delete" +done | sort -k1,1nr | cut -d' ' -f2 > "$articles_sorted_with_delete" commits=`mktemp` git log --oneline | cut -d' ' -f1 > "$commits" -- cgit v1.2.3