Use a redirection to avoid a call to cut (second)

This commit is contained in:
Frédéric Mahé 2014-01-18 16:28:34 +01:00 committed by Olivier Mengué
parent 74778659ae
commit 83a2215163

View File

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