Pattern: Use of =
in command name
Issue: -
This was likely intended as either a comparison or an assignment.
To compare two values, use e.g. [ "$var" = "42" ]
To assign a value, use e.g. var="42"
.
Example of incorrect code:
"$var"=42
if "$var"=42
then
true
fi
Example of correct code:
var=42
if [ "$var" = 42 ]
then
true
fi