mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-18 16:21:32 +01:00
network: Quiet grep on remove
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user