I have a simple bash script given below
readlink $MY_LINK
if [$? != "$TEST_DIR/$PCD_NAME/bin/test2"]; then
rm $MY_LINK
ln -s $TEST_DIR/$PCD_NAME/bin/test2 $MY_LINK
fi
When I run the script, I am getting the error.
./test.sh: line 6: [1: not found
What am I doing wrong?