Fix SC2086 - Double quote to prevent globing and word splitting

This commit is contained in:
Pedro Algarvio 2014-06-21 19:14:28 +01:00
parent 591f52893b
commit 6a850f98a5

View file

@ -953,12 +953,12 @@ __debian_derivatives_translation() {
rv=$(grep ^ID= /etc/os-release | sed -e 's/.*=//')
# Translate Debian derivatives to their base Debian version
match=$(echo $rv | egrep ${DEBIAN_DERIVATIVES})
match=$(echo "$rv" | egrep ${DEBIAN_DERIVATIVES})
if [ "x${match}" != "x" ]; then
case $match in
kali)
_major="$(echo $DISTRO_VERSION | sed 's/^\([0-9]*\).*/\1/g')"
_major=$(echo "$DISTRO_VERSION" | sed 's/^\([0-9]*\).*/\1/g')
_debian_derivative="kali"
;;
esac