script: show found services in error message

This commit is contained in:
th33xitus
2021-05-23 11:38:32 +02:00
parent fb0a30814d
commit 6c8845d7b4

View File

@@ -11,6 +11,7 @@ klipper_setup_dialog(){
SYSTEMD=$(ls /etc/systemd/system | grep -E "^klipper(\-[[:digit:]]+)?\.service$")
if [ ! -z "$INITD" ] || [ ! -z "$SYSTEMD" ]; then
echo "${red}$INITD${default}" && echo "${red}$SYSTEMD${default}"
ERROR_MSG="At least one Klipper service is already installed!\n Please remove Klipper first, before installing it again." && return 0
fi