Merge pull request #370 from phigoro/master

git-effort: replace "wc | cut" with "wc | awk"
This commit is contained in:
hemanth.hm 2015-05-13 10:24:54 +05:30
commit 9b45e6b831

View file

@ -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