I have the following bash script
if [[$NODE_NAME = "Node1"]]
then
dir="../../test"
fi
that I use in Jenkins execute shell prompt.
It gives me an error saying Slave1 command not found.
I just want to check if the $NODE_NAME variable equals the value "Slave1". How do I do that in bash?