Fix distro detection proper
This commit is contained in:
parent
5cf85362dc
commit
cf3831c13b
|
@ -27,7 +27,7 @@ checkOS() {
|
|||
DISTRO="$ID"
|
||||
DISTRO_CURRENT="$DISTRO"
|
||||
if [[ -n "$ID_LIKE" ]]; then
|
||||
DISTRO="${ID_LIKE# *}"
|
||||
DISTRO="${ID_LIKE%% *}"
|
||||
fi
|
||||
return 0
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue