single grep
This commit is contained in:
parent
7bbd60ddc7
commit
f033ce9352
@ -14,7 +14,7 @@ begin_test "track"
|
|||||||
|
|
||||||
# track *.jpg once
|
# track *.jpg once
|
||||||
git lfs track "*.jpg" | grep "Tracking \*.jpg"
|
git lfs track "*.jpg" | grep "Tracking \*.jpg"
|
||||||
numjpg=$(cat .gitattributes | grep "\*.jpg" | wc -l)
|
numjpg=$(grep "\*.jpg" .gitattributes | wc -l)
|
||||||
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
||||||
echo "wrong number of jpgs"
|
echo "wrong number of jpgs"
|
||||||
cat .gitattributes
|
cat .gitattributes
|
||||||
@ -23,7 +23,7 @@ begin_test "track"
|
|||||||
|
|
||||||
# track *.jpg again
|
# track *.jpg again
|
||||||
git lfs track "*.jpg" | grep "*.jpg already supported"
|
git lfs track "*.jpg" | grep "*.jpg already supported"
|
||||||
numjpg=$(cat .gitattributes | grep "\*.jpg" | wc -l)
|
numjpg=$(grep "\*.jpg" .gitattributes | wc -l)
|
||||||
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
if [ "$(printf "%d" "$numjpg")" != "1" ]; then
|
||||||
echo "wrong number of jpgs"
|
echo "wrong number of jpgs"
|
||||||
cat .gitattributes
|
cat .gitattributes
|
||||||
|
Loading…
Reference in New Issue
Block a user