fix minor issue on lsb_release

This commit is contained in:
Kaladin Light 2016-05-15 17:02:03 -04:00
parent 3916acf665
commit 2aad7f3c59

View file

@ -65,8 +65,8 @@ If you think you received this message in error, you can post an issue on the Gi
} }
if hash lsb_release 2>/dev/null; then if hash lsb_release 2>/dev/null; then
PLAT=$($LSB_REL -si) PLAT=$(lsb_release -si)
OSCN=$($LSB_REL -sc) # We want this to be trusty xenial or jessie OSCN=$(lsb_release -sc) # We want this to be trusty xenial or jessie
if [[ $PLAT == "Ubuntu" || $PLAT == "Raspbian" || $PLAT == "Debian" ]]; then if [[ $PLAT == "Ubuntu" || $PLAT == "Raspbian" || $PLAT == "Debian" ]]; then
if [[ $OSCN != "trusty" && $OSCN != "xenial" && $OSCN != "jessie" ]]; then if [[ $OSCN != "trusty" && $OSCN != "xenial" && $OSCN != "jessie" ]]; then