diff --git a/bin/git-effort b/bin/git-effort index 4fb2981..ac55d27 100755 --- a/bin/git-effort +++ b/bin/git-effort @@ -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