I am a beginner is bash and i really need some help here.The conditional part of the script is not executing for some reason. Here is my code
#!/bin/bash
#Checking Os
os=$(lsb_release -si)
echo $os
if [ $os == "CentOs" ]; then
echo 'success'
fi
Now part till echo $os works fine and out is
CentOs
but 'success' don't get output :(
Any idea why if part don't get executed.What is wrong with the syntax.I get no errors whatsoever