Skip to content

Commit

Permalink
Merge pull request #165 from lucc/wc-fix
Browse files Browse the repository at this point in the history
Remove unnecessary awk call after wc -l.
  • Loading branch information
rkitover committed Apr 21, 2016
2 parents 111bd77 + 559ab85 commit 476862a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimpager
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ main() {
# if file is zero length, or one blank line (cygwin), and is only arg, exit
if [ \( ! -s "${filename}" \) \
-o \( \( "$(cat "${filename}")" = "" \) \
-a \( "$(wc -l "${filename}" | awk '{print $1}')" = "1" \) \) ]; then
-a \( "$(wc -l < "${filename}")" -eq 1 \) \) ]; then

if [ "${#}" -eq 1 ]; then
quit 0
Expand Down

0 comments on commit 476862a

Please sign in to comment.