mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge branch 'master' of github.com:snipe/snipe-it
This commit is contained in:
commit
cb494a74ca
|
@ -111,10 +111,8 @@ function isinstalled {
|
|||
}
|
||||
|
||||
if [ -f /etc/lsb-release ]; then
|
||||
. /etc/lsb-release
|
||||
distro="${DISTRIB_ID,,}"
|
||||
version="$DISTRIB_RELEASE"
|
||||
codename="$DISTRIB_CODENAME"
|
||||
distro="$(lsb_release -s -i )"
|
||||
version="$(lsb_release -s -r)"
|
||||
elif [ -f /etc/os-release ]; then
|
||||
distro="$(. /etc/os-release && echo $ID)"
|
||||
version="$(. /etc/os-release && echo $VERSION_ID)"
|
||||
|
|
Loading…
Reference in a new issue