diff options
author | Wagner <wagner+github@cert.at> | 2018-10-23 13:16:36 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2018-10-23 13:16:36 +0300 |
commit | c94b97bd9e2ce706c77fe83e5924b781c402cc76 (patch) | |
tree | 7add1ac342f215188f56cfaa7d2c7d02fafc47cc /include | |
parent | c52edc49c7ef760e29deb6dd484f197b7f4b8f60 (diff) |
osdetection: ignore quotes in OS_ID (#593)
Diffstat (limited to 'include')
-rw-r--r-- | include/osdetection | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osdetection b/include/osdetection index 4b8d29be..55c5ff9c 100644 --- a/include/osdetection +++ b/include/osdetection @@ -137,7 +137,7 @@ # Generic if [ -e /etc/os-release ]; then - OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}') + OS_ID=$(grep "^ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') if [ ! -z "${OS_ID}" ]; then case ${OS_ID} in "arch") |