Skip to content

Commit

Permalink
CDEmu just command fixes (#1007)
Browse files Browse the repository at this point in the history
* CDEmu just fixes

Typos and language fixes

* Still more typos around

* Missed one more
  • Loading branch information
RodoMa92 authored Apr 23, 2024
1 parent afab9eb commit 74a075a
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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

0 comments on commit 74a075a

Please sign in to comment.