This commit is contained in:
vinceliuice 2024-04-18 16:50:46 +08:00
parent 74dfccef21
commit 9fe727a599
2 changed files with 2 additions and 1 deletions

View File

@ -26,6 +26,7 @@ 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

View File

@ -382,7 +382,7 @@ install_shelly() {
fi
if [[ "${GNOME_VERSION}" == 'none' ]]; then
local GNOME_VERSION='44-0'
local GNOME_VERSION="${LAST_VERSION}"
fi
mkdir -p "${TARGET_DIR}"