Fixes issue #3649 with gohilurvish’s recommended fix.
This commit is contained in:
Ben 2017-06-09 20:23:32 +01:00 committed by snipe
parent 0bc709206f
commit 17ce4ea08b

View file

@ -113,6 +113,7 @@ function isinstalled {
if [ -f /etc/lsb-release ]; then if [ -f /etc/lsb-release ]; then
distro="$(lsb_release -s -i )" distro="$(lsb_release -s -i )"
version="$(lsb_release -s -r)" version="$(lsb_release -s -r)"
codename="$(lsb_release -c -s)"
elif [ -f /etc/os-release ]; then elif [ -f /etc/os-release ]; then
distro="$(. /etc/os-release && echo $ID)" distro="$(. /etc/os-release && echo $ID)"
version="$(. /etc/os-release && echo $VERSION_ID)" version="$(. /etc/os-release && echo $VERSION_ID)"