From a42eb7a05104489afc419d368d9dc6c8535433be Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Tue, 11 Mar 2025 20:16:37 -0600 Subject: [PATCH] network: Quiet grep on remove --- usr/local/share/bastille/network.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/network.sh b/usr/local/share/bastille/network.sh index 8b924ef5..0ee645c7 100644 --- a/usr/local/share/bastille/network.sh +++ b/usr/local/share/bastille/network.sh @@ -399,7 +399,7 @@ remove_interface() { fi # Remove interface from /etc/rc.conf - if [ -n "${_if_vnet}" ] && echo ${_if_vnet} 2>/dev/null | grep -Eo 'vnet[0-9]+'; then + if [ -n "${_if_vnet}" ] && echo ${_if_vnet} 2>/dev/null | grep -Eoq 'vnet[0-9]+'; then sed -i '' "/.*${_if_vnet}.*/d" "${_jail_rc_config}" else error_continue "Failed to remove interface from /etc/rc.conf"