Use a redirection to avoid a call to cut

This commit is contained in:
Frédéric Mahé 2014-01-18 16:23:06 +01:00 committed by Olivier Mengué
parent 549f820e9d
commit 74778659ae

View File

@ -962,7 +962,7 @@ _lp_fossil_branch_color()
local FILE
ADDFILE=`fossil changes | grep ADDED | sed -e 's/\s\{2,\}/ /g' | cut -d" " -f2`
for FILE in $ADDFILE ; do
PLULI=$(wc -l $FILE | cut -d" " -f1)
PLULI=$(wc -l < $FILE)
let PLUSLINE=$PLUSLINE+$PLULI
done
fi