-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC1131
Vidar Holen edited this page Apr 28, 2018
·
1 revision
if false
then
echo "hi"
elseif true
then
echo "ho"
fi
if false
then
echo "hi"
elif true
then
echo "ho"
fi
ShellCheck noticed that you appear to be using elseif
or elsif
as a keyword. This is not valid.
sh
instead uses elif
as its alternative branch keyword.
If you have made your own function called elseif
and intend to call it, you can ignore this message.
- Help by adding links to BashFAQ, StackOverflow, man pages, POSIX, etc!