Fixed #1046 Install failed on MATE Desktop

This commit is contained in:
vinceliuice
2024-04-19 19:52:36 +08:00
parent 93c563d82c
commit 97cc1ce7cb
2 changed files with 1 additions and 6 deletions

View File

@@ -26,7 +26,6 @@ MY_HOME=$(getent passwd "${MY_USERNAME}" | cut -d: -f6)
if command -v gnome-shell &> /dev/null; then
SHELL_VERSION="$(gnome-shell --version | cut -d ' ' -f 3 | cut -d . -f -1)"
LAST_VERSION="46-0"
if [[ "${SHELL_VERSION:-}" -ge "46" ]]; then
GNOME_VERSION="46-0"
elif [[ "${SHELL_VERSION:-}" -ge "44" ]]; then
@@ -39,7 +38,7 @@ if command -v gnome-shell &> /dev/null; then
GNOME_VERSION="3-28"
fi
else
GNOME_VERSION="none"
GNOME_VERSION="46-0"
fi
#----------Program options-------------#