Pattern: Unexpected character after ]
/]]
Issue: -
Make sure the ]
or ]]
is not immediately followed by another shell word character.
Example of incorrect code:
if [ -e "foo.txt" ]: then
echo "Exists"
fi
Example of correct code:
if [ -e "foo.txt" ]; then
echo "Exists"
fi