scripts/checkdeps: use bash native lowercase

This commit is contained in:
Christoph Gysin 2017-11-23 09:03:25 +02:00
parent 8268aa4928
commit 6306c6a654

View File

@ -63,13 +63,15 @@ get_yes_no()
}
if [ -f /etc/lsb-release ]; then
DISTRO=$(grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2 | tr A-Z a-z)
DISTRO=$(grep DISTRIB_ID /etc/lsb-release | cut -d "=" -f 2)
fi
if [ -f /etc/os-release ]; then
DISTRO=$(grep ^ID= /etc/os-release | cut -d "=" -f 2 | tr A-Z a-z)
DISTRO=$(grep ^ID= /etc/os-release | cut -d "=" -f 2)
fi
DISTRO=${DISTRO,,}
deps=(wget bash bc gcc sed patch lsdiff tar bzip2 gzip perl gawk gperf zip unzip diff lzop)
deps_pkg=(wget bash bc gcc sed patch patchutils tar bzip2 gzip perl gawk gperf zip unzip diffutils lzop)