I want to build a shell script. There should be a conditional flag for CentOS version. I want to set a variable for that version like this
VERSION := $(lsb_release -sr)
But when I included this part I got error. Please someone help me to get the version in shell script.
N.B : lsb_release sr works fine when I give this command in terminal.
uname -r. Why is this tagged c++?