I have a shell script which gets executed. In the script I have:
if [[ $variable == *something* ]]; then
do something
fi
My issue here is that running the script returns "[[ not found".
From reading other answers, it looks like not all shells recognize double brackets, however, I am not sure what the solution is, what is the equivalent of that code?