From 9fe727a599d4666eeb33ea7c34bf53d3b32eafcd Mon Sep 17 00:00:00 2001 From: vinceliuice Date: Thu, 18 Apr 2024 16:50:46 +0800 Subject: [PATCH] update --- shell/lib-core.sh | 1 + shell/lib-install.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/lib-core.sh b/shell/lib-core.sh index 9fc7af3d..285f35cf 100755 --- a/shell/lib-core.sh +++ b/shell/lib-core.sh @@ -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 diff --git a/shell/lib-install.sh b/shell/lib-install.sh index ae41efd3..de46de04 100755 --- a/shell/lib-install.sh +++ b/shell/lib-install.sh @@ -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}"