mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
Fixes issue #3649 with gohilurvish’s recommended fix.
This commit is contained in:
parent
0bc709206f
commit
17ce4ea08b
|
@ -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)"
|
||||||
|
|
Loading…
Reference in a new issue