summaryrefslogtreecommitdiff
path: root/t/chainlint/if-in-loop.test
blob: f0cf19cfadac8c1ae9d09a668bafc99517c50cdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
(
	for i in a b c
	do
		if false
		then
# LINT: missing "&&" on "echo"
			echo "err"
			exit 1
# LINT: missing "&&" on "fi"
		fi
		foo
# LINT: missing "&&" on "done"
	done
	bar
)