From 19ddf3e023f07e71133d4df011021508b9f9817e Mon Sep 17 00:00:00 2001 From: th33xitus Date: Thu, 11 Nov 2021 13:02:36 +0100 Subject: [PATCH] fix: silence grep --- scripts/install_moonraker.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install_moonraker.sh b/scripts/install_moonraker.sh index bdae2c4..ebc0a19 100755 --- a/scripts/install_moonraker.sh +++ b/scripts/install_moonraker.sh @@ -250,7 +250,7 @@ create_moonraker_conf(){ sed -i "s|%UDS%|$KLIPPY_UDS|" $MR_CONF # if host ip is not in the default ip ranges, replace placeholder # otherwise remove placeholder from config - if ! grep $LAN $MR_CONF; then + if ! grep -q $LAN $MR_CONF; then sed -i "s|%LAN%|$LAN|" $MR_CONF else sed -i "/%LAN%/d" $MR_CONF