CorrectInstance=DEV
Instance_Name=DEV
if [ $Instance_Name == $CorrectInstance ]
then
echo "Instance validated sucessfully"
else
echo "Instance validation failed. Script exited."
exit
fi
When I am running above script I am getting below error.
Match.sh[3]: ^M: not found [No such file or directory]
Match.sh: line 3: syntax error at line 10: `fi' unexpected
Please sugeest