summaryrefslogtreecommitdiffstats
path: root/t/chainlint/for-loop-abbreviated.test
blob: 1084eccb89c1eb35ba329c3ccf371c9aa17ac69c (plain)
1
2
3
4
5
6
# LINT: for-loop lacking optional "in [word...]" before "do"
for it
do
	path=$(expr "$it" : '\([^:]*\)') &&
	git update-index --add "$path" || exit
done