1
0
Fork 0
mirror of https://git.ludikovsky.name/git/fugitive.git synced 2024-05-18 14:35:32 +02:00

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

View file

@ -34,7 +34,7 @@ for f in "$articles_dir"/*; do
if [ "$ts" != "" ]; then if [ "$ts" != "" ]; then
echo "$ts ${f#$articles_dir/}" echo "$ts ${f#$articles_dir/}"
fi fi
done | sort -nr | cut -d' ' -f2 > "$articles_sorted" done | sort -k1,1nr | cut -d' ' -f2 > "$articles_sorted"
if [ "`head -1 $articles_sorted`" = "" ]; then if [ "`head -1 $articles_sorted`" = "" ]; then
echo "[fugitive] WARNING: there's no article, errors may occur." >&2 echo "[fugitive] WARNING: there's no article, errors may occur." >&2