diff options
author | p4bl0 <r@uzy.me> | 2011-05-31 00:38:21 +0200 |
---|---|---|
committer | p4bl0 <r@uzy.me> | 2011-05-31 00:38:21 +0200 |
commit | 5154b86f6e9938b74f947de4bc2282ff56aec348 (patch) | |
tree | f401ebd288aae1588d295ce9a1458d51f12168fe | |
parent | ac6e67b1e07499e61fd5af0434c64ed606d58045 (diff) |
fix bug due to the sort command ignoring whitespace... everywhere
-rw-r--r-- | html-gen.sh | 2 |
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 |