sort unless there is only one item

This commit is contained in:
spacewander 2015-03-22 22:55:15 +08:00
parent 1a25e57069
commit 3330af6cd4

View file

@ -137,7 +137,9 @@ trap show_cursor_and_cleanup INT
# loop files
heading
effort "${files[@]}" | tee $tmp && sort_effort
effort "${files[@]}" | tee $tmp
test "$(wc -l $tmp | cut -d' ' -f1 )" -gt 1 && sort_effort
echo
show_cursor_and_cleanup