$on a variable?
case foo in ) echo "Match" baresac
case $foo in ) echo "Match" baresac
You are using a
case statement to compare a literal word.
You most likely wanted to treat this word as a
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.