diff --git a/CHANGELOG.md b/CHANGELOG.md index 65e1e93d..a632c363 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### Changed - Changed several warning labels on screen - AUTH-9308 - More generic sulogin for systemd rescue.service +- OS detection now ignores quotes for getting the OS ID. --------------------------------------------------------------------------------- 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")