mirror of
https://github.com/tj/git-extras.git
synced 2026-09-16 02:16:17 -04:00
Merge pull request #370 from phigoro/master
git-effort: replace "wc | cut" with "wc | awk"
This commit is contained in:
commit
9b45e6b831
|
|
@ -139,7 +139,7 @@ trap show_cursor_and_cleanup INT
|
|||
heading
|
||||
|
||||
effort "${files[@]}" | tee $tmp
|
||||
test "$(wc -l $tmp | cut -d' ' -f1 )" -gt 1 && sort_effort
|
||||
test "$(wc -l $tmp | awk '{print $1}')" -gt 1 && sort_effort
|
||||
echo
|
||||
|
||||
show_cursor_and_cleanup
|
||||
|
|
|
|||
Loading…
Reference in a new issue