Skip to content

Commit cb494a7

Browse files
committed
Merge branch 'master' of github.com:snipe/snipe-it
2 parents c526ffb + 5a3816c commit cb494a7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

snipeit.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,8 @@ function isinstalled {
111111
}
112112

113113
if [ -f /etc/lsb-release ]; then
114-
. /etc/lsb-release
115-
distro="${DISTRIB_ID,,}"
116-
version="$DISTRIB_RELEASE"
117-
codename="$DISTRIB_CODENAME"
114+
distro="$(lsb_release -s -i )"
115+
version="$(lsb_release -s -r)"
118116
elif [ -f /etc/os-release ]; then
119117
distro="$(. /etc/os-release && echo $ID)"
120118
version="$(. /etc/os-release && echo $VERSION_ID)"

0 commit comments

Comments
 (0)