Skip to content

Commit ecd2575

Browse files
committed
Merge pull request tj#370 from phigoro/master
git-effort: replace "wc | cut" with "wc | awk"
2 parents 264726f + a47ca5c commit ecd2575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/git-effort

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ trap show_cursor_and_cleanup INT
139139
heading
140140

141141
effort "${files[@]}" | tee $tmp
142-
test "$(wc -l $tmp | cut -d' ' -f1 )" -gt 1 && sort_effort
142+
test "$(wc -l $tmp | awk '{print $1}')" -gt 1 && sort_effort
143143
echo
144144

145145
show_cursor_and_cleanup

0 commit comments

Comments
 (0)