fix: add default value for SUB_OS detection
This commit is contained in:
parent
7c6d94fc5f
commit
c83a2f70aa
1 changed files with 1 additions and 1 deletions
|
@ -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}"
|
||||
|
|
Loading…
Reference in a new issue