fix: add default value for SUB_OS detection

This commit is contained in:
Nicolas Meienberger 2023-08-26 00:27:50 +02:00 committed by Nicolas Meienberger
parent 7c6d94fc5f
commit c83a2f70aa

View file

@ -38,7 +38,7 @@ done
OS="$(cat /etc/[A-Za-z]*[_-][rv]e[lr]* | grep "^ID=" | cut -d= -f2 | uniq | tr '[:upper:]' '[:lower:]' | tr -d '"')"
SUB_OS="$(cat /etc/[A-Za-z]*[_-][rv]e[lr]* | grep "^ID_LIKE=" | cut -d= -f2 | uniq | tr '[:upper:]' '[:lower:]' | tr -d '"')"
SUB_OS="$(cat /etc/[A-Za-z]*[_-][rv]e[lr]* | grep "^ID_LIKE=" | cut -d= -f2 | uniq | tr '[:upper:]' '[:lower:]' | tr -d '"' || echo 'unknown')"
function install_generic() {
local dependency="${1}"