From 6a850f98a5d919bda887ab5535133e45ee36146a Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Sat, 21 Jun 2014 19:14:28 +0100 Subject: [PATCH] Fix SC2086 - Double quote to prevent globing and word splitting --- bootstrap-salt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 55890c3..b53f23a 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -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