[ x = y ]
to compare values (or quote '=='
if
literal).if $var == value
then
echo "Match"
fi
if [ "$var" = value ]
then
echo "Match"
fi
ShellCheck found an unquoted ==
after a word.
This was most likely supposed to be a comparison, so use square brackets as in the correct code.
If the ==
was supposed to be literal, you can quote it
to make ShellCheck ignore it:
grep '===' file.js
ShellCheck is a static analysis tool for shell scripts. This page is part of its documentation.