From 74a075aa65370c22015946ad7d29188149f4ac9f Mon Sep 17 00:00:00 2001 From: Marco Rodolfi Date: Tue, 23 Apr 2024 19:48:35 +0200 Subject: [PATCH] CDEmu just command fixes (#1007) * CDEmu just fixes Typos and language fixes * Still more typos around * Missed one more --- .../share/ublue-os/just/82-bazzite-cdemu.just | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just b/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just index 689c32016a..0842301323 100644 --- a/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just +++ b/system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just @@ -24,7 +24,7 @@ setup-cdemu ACTION="": echo " Use 'install' to select Install CDEmu" echo " Use 'remove' to select Remove CDEmu" echo " Use 'autostart' to select Toggle Autostart" - echo " Use 'remove-gui-helper' if you don't want to have the GUI + echo " Use 'remove-gui-helper' if you don't want to have the GUI" exit 0 elif [ "$OPTION" == "" ]; then echo "${bold}CDEmu setup and configuration${normal}" @@ -34,7 +34,7 @@ setup-cdemu ACTION="": fi if [[ "${OPTION,,}" =~ ^install ]]; then ublue-update --wait - if [[ "$(GUI_EDITION) = "kinoite" ]]; then + if [[ "$GUI_EDITION" == "kinoite" ]]; then # Install packages for KDE 6 rpm-ostree install --apply-live -y cdemu-daemon cdemu-client kde-cdemu-manager-kf6 else @@ -46,7 +46,7 @@ setup-cdemu ACTION="": elif [[ "${OPTION,,}" =~ ^(remove|uninstall) ]]; then ublue-update --wait systemctl disable --user cdemu-daemon.service - if [[ "$(GUI_EDITION) = "kinoite" ]]; then + if [[ "$GUI_EDITION" == "kinoite" ]]; then # Remove packages for KDE 6 GUI_STATE="$(rpm -qa kde-cdemu-manager-kf6)" #GUI already removed @@ -59,7 +59,7 @@ setup-cdemu ACTION="": # Remove packages for GNOME GUI_STATE="$(rpm -qa gcdemu)" #GUI already removed - if [[GUI_STATE == ""]]; then + if [["${GUI_STATE,,}" == ""]]; then rpm-ostree remove -y cdemu-daemon cdemu-client else rpm-ostree remove -y cdemu-daemon cdemu-client gcdemu @@ -73,21 +73,21 @@ setup-cdemu ACTION="": systemctl disable --user --now cdemu-daemon.service fi elif [[ "${OPTION,,}" =~ remove-gui-helper ]]; then - if [[ "$(GUI_EDITION) = "kinoite" ]]; then + if [[ "$GUI_EDITION" == "kinoite" ]]; then GUI_STATE="$(rpm -qa kde-cdemu-manager-kf6)" - if [[GUI_STATE == ""]]; then + if [["$GUI_STATE" == ""]]; then echo "GUI has already been removed or the package is not yet installed!" else rpm-ostree remove -y kde-cdemu-manager-kf6 - echo "GUI has been removed, you can still mount images using the CLI with the cdemu command" + echo "GUI has been removed, you can still mount images using the CLI with the cdemu command." fi else GUI_STATE="$(rpm -qa gcdemu)" - if [[GUI_STATE == ""]]; then + if [["$GUI_STATE" == ""]]; then echo "GUI has already been removed or the package is not yet installed!" else rpm-ostree remove -y gcdemu - echo "GUI has been removed, you can still mount images using the CLI with the cdemu command" + echo "GUI has been removed, you can still mount images using the CLI with the cdemu command." fi fi fi