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

View File

@ -381,10 +381,6 @@ install_shelly() {
TARGET_DIR="${6}"
fi
if [[ "${GNOME_VERSION}" == 'none' ]]; then
local GNOME_VERSION="${LAST_VERSION}"
fi
mkdir -p "${TARGET_DIR}"
mkdir -p "${TARGET_DIR}/assets"
cp -r "${THEME_SRC_DIR}/assets/gnome-shell/icons" "${TARGET_DIR}"