Skip to content

Commit 67759be

Browse files
authored
fix(ujust): setup-cdemu script failing to install cdemu (#1151)
1 parent d39549e commit 67759be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

system_files/desktop/shared/usr/share/ublue-os/just/82-bazzite-cdemu.just

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ setup-cdemu ACTION="":
99
OPTION={{ ACTION }}
1010
if [ "$CDEMU_STATE" == "" ]; then
1111
CDEMU_STATE="${red}${b}Not Installed${n}"
12+
CDEMU_STATE_FLAG="0"
1213
else
1314
CDEMU_STATE="${green}${b}Installed${n}"
15+
CDEMU_STATE_FLAG="1"
1416
fi
1517
if [ "$OPTION" == "help" ]; then
1618
echo "Usage: ujust setup-cdemu <option>"
@@ -25,7 +27,7 @@ setup-cdemu ACTION="":
2527
OPTION=$(Choose "Install CDEmu" "Remove CDEmu" "Remove GUI Helper")
2628
fi
2729
if [[ "${OPTION,,}" =~ ^install ]]; then
28-
if [[ "$CDEMU_STATE" != "" ]]; then
30+
if [[ "$CDEMU_STATE_FLAG" == "1" ]]; then
2931
echo "${red} CDEmu has already been installed!"
3032
exit 0
3133
fi
@@ -41,7 +43,7 @@ setup-cdemu ACTION="":
4143
systemctl start --user cdemu-daemon.service
4244
echo "CDEmu is installed!"
4345
elif [[ "${OPTION,,}" =~ ^(remove|uninstall) ]]; then
44-
if [[ "$CDEMU_STATE" == "" ]]; then
46+
if [[ "$CDEMU_STATE_FLAG" == "0" ]]; then
4547
echo "${red} CDEmu has already been removed!"
4648
exit 0
4749
fi

0 commit comments

Comments
 (0)