mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 23:46:24 -04:00
sort unless there is only one item
This commit is contained in:
parent
1a25e57069
commit
3330af6cd4
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue