1
0
mirror of https://github.com/git/git.git synced 2024-09-24 16:11:00 +02:00
git/t/chainlint/if-in-loop.test

16 lines
224 B
Plaintext
Raw Normal View History

(
for i in a b c
do
if false
then
# LINT: missing "&&" on "echo" okay since "exit 1" signals error explicitly
echo "err"
exit 1
# LINT: missing "&&" on "fi"
fi
foo
# LINT: missing "&&" on "done"
done
bar
)