fix: silence grep

This commit is contained in:
th33xitus
2021-11-11 13:02:36 +01:00
parent ba888b1f97
commit 19ddf3e023

View File

@@ -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