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