Skip to content

Commit 4df64eb

Browse files
committed
cat the readme if grep fails
1 parent 6dcf22d commit 4df64eb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

test/test-submodule.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ begin_test "submodule local git dir"
2525
git commit -m "add submodule"
2626
git push origin master
2727

28-
grep "sub module" sub/dir/README
28+
grep "sub module" sub/dir/README || {
29+
cat sub/dir/README
30+
exit 1
31+
}
2932
)
3033
end_test
3134

0 commit comments

Comments
 (0)