mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
Fix SC2086 - Double quote to prevent globing and word splitting
This commit is contained in:
parent
591f52893b
commit
6a850f98a5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue