summaryrefslogtreecommitdiff
path: root/html-gen.sh
diff options
context:
space:
mode:
authorp4bl0 <r@uzy.me>2011-05-31 00:38:21 +0200
committerp4bl0 <r@uzy.me>2011-05-31 00:38:21 +0200
commit5154b86f6e9938b74f947de4bc2282ff56aec348 (patch)
treef401ebd288aae1588d295ce9a1458d51f12168fe /html-gen.sh
parentac6e67b1e07499e61fd5af0434c64ed606d58045 (diff)
fix bug due to the sort command ignoring whitespace... everywhere
Diffstat (limited to 'html-gen.sh')
-rw-r--r--html-gen.sh2
1 files changed, 1 insertions, 1 deletions
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