Fix distro detection proper

This commit is contained in:
Eric Renfro 2024-07-07 15:57:40 -04:00
parent 5cf85362dc
commit cf3831c13b
Signed by: psi-jack
SSH key fingerprint: SHA256:1TKB8Z257L8EHK8GWNxKgMhD8a+FAR+f+j3nnlcuNVM

View file

@ -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