From 36a8757cfd09c6ccbbd38f711773973d15219e2d Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 11 Nov 2021 13:26:01 +0100 Subject: [PATCH] chore: use ls to look for webcamd installation --- scripts/install_klipper_webui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/install_klipper_webui.sh b/scripts/install_klipper_webui.sh index 7934b83..faff515 100755 --- a/scripts/install_klipper_webui.sh +++ b/scripts/install_klipper_webui.sh @@ -1,6 +1,6 @@ system_check_webui(){ ### check system for installed moonraker service - if ls /etc/systemd/system/moonraker.service 2>/dev/null || ls /etc/systemd/system | grep -q -E "moonraker-[[:digit:]]+.service"; then + if ls /etc/systemd/system/moonraker.service 2>/dev/null 1>&2 || ls /etc/systemd/system | grep -q -E "moonraker-[[:digit:]]+.service"; then moonraker_chk_ok="true" else moonraker_chk_ok="false" @@ -114,7 +114,7 @@ install_webui(){ $1_port_check ### ask user to install mjpg-streamer - if [[ ! "$(systemctl list-units --full -all -t service --no-legend | grep -F "webcamd.service")" ]]; then + if ls /etc/systemd/system/webcamd.service 2>/dev/null 1>&2; then get_user_selection_mjpg-streamer fi