fix bug due to the sort command ignoring whitespace... everywhere

This commit is contained in:
p4bl0 2011-05-31 00:38:21 +02:00
parent ac6e67b1e0
commit 5154b86f6e
1 changed files with 1 additions and 1 deletions

View File

@ -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