echo $overwriteWorkspaceEnv
if [ $overwriteWorkspaceEnv="yes" ]; then
echo new workspace
else
echo old workspace
fi
This is what prints out:
no
new workspace
I'm confused why the script is printing out "new workspace", when overwriteWorkspaceEnv is equal to "no". Shouldn't it print out "old workspace", since overwriteWorkspaceEnv equals "no"? I tried changing the else to an elif with $overwriteWorkspaceEnv="no" as the argument and nothing changed.
Any able would be appreciated.