File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
system_files/desktop/shared/usr/share/ublue-os/just Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments