added clean exit default cases

This commit is contained in:
Stefano C. Coronado 2019-12-29 11:50:36 -05:00
parent ca4a7be675
commit bed6777595

View file

@ -27,6 +27,7 @@ if command -v ratpoison; then
sleep 1 sleep 1
ratpoison -d :$DNum & ratpoison -d :$DNum &
else # Use the default x window manager installed based on lsb_release id else # Use the default x window manager installed based on lsb_release id
DISPLAY=:$DNum DISPLAY=:$DNum
distro_id=$(lsb_release -i | awk '{print($3)}') distro_id=$(lsb_release -i | awk '{print($3)}')
@ -37,6 +38,10 @@ else # Use the default x window manager installed based on lsb_release id
startplasma-x11 & startplasma-x11 &
elif [ "${XDG_SESSION_DESKTOP}" == "GNOME" ]; then elif [ "${XDG_SESSION_DESKTOP}" == "GNOME" ]; then
mutter & mutter &
else
printf "%s\n" "Could not find a suitable Window Manager"
exit 1
fi fi
fi fi
@ -52,6 +57,9 @@ if command -v docker; then
elif command -v podman; then elif command -v podman; then
engine_of_choice="podman" engine_of_choice="podman"
else
printf "%s\n" "Docker/Podman are not installed!"
exit 1
fi fi
# then run the detected container engine # then run the detected container engine