summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorp4bl0 <r@uzy.me>2011-05-31 00:04:41 +0200
committerp4bl0 <r@uzy.me>2011-05-31 00:04:41 +0200
commitac6e67b1e07499e61fd5af0434c64ed606d58045 (patch)
treee3b3a860df2a082055a59a4fd2fc863a037ad62c
parentb4ed213b75f7493a206bc130f50decfe5496e694 (diff)
fix bug due to the sort command ignoring whitespace
-rw-r--r--html-gen.sh2
1 files changed, 1 insertions, 1 deletions
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"