mirror of
https://git.ludikovsky.name/git/fugitive.git
synced 2024-10-05 15:35:29 +02:00
fix bug due to the sort command ignoring whitespace... everywhere
This commit is contained in:
parent
ac6e67b1e0
commit
5154b86f6e
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue