fix: silence grep
This commit is contained in:
1 parent
ba888b1f97
commit
19ddf3e023
1 file changed
+1
-1
@@ -250,7 +250,7 @@ create_moonraker_conf(){
|
|||||||
sed -i "s|%UDS%|$KLIPPY_UDS|" $MR_CONF
|
sed -i "s|%UDS%|$KLIPPY_UDS|" $MR_CONF
|
||||||
# if host ip is not in the default ip ranges, replace placeholder
|
# if host ip is not in the default ip ranges, replace placeholder
|
||||||
# otherwise remove placeholder from config
|
# 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
|
sed -i "s|%LAN%|$LAN|" $MR_CONF
|
||||||
else
|
else
|
||||||
sed -i "/%LAN%/d" $MR_CONF
|
sed -i "/%LAN%/d" $MR_CONF
|
||||||
|
|||||||
Reference in new issue
Block a user