Pattern: Use of constant case
statement in shell script
Issue: -
You are using a case
statement to compare a literal word.
You most likely wanted to treat this word as a $variable
or $(command)
instead.
Example of incorrect code:
case foo in
bar) echo "Match"
esac
Example of correct code:
case $foo in
bar) echo "Match"
esac