From deab7e39f73081e64b21c46ce508d4cd70a7e2da Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 16 Apr 2025 17:52:32 -0600 Subject: [PATCH] keep grep errors silent --- usr/local/share/bastille/common.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 58500a92..a3d24b09 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -121,7 +121,7 @@ check_target_is_stopped() { get_epair_count() { for _config in /usr/local/etc/bastille/*.conf; do local bastille_jailsdir="$(sysrc -f "${_config}" -n bastille_jailsdir)" - _epair_list="$(printf '%s\n' "$( (grep -Eo '(epair[0-9]+|bastille[0-9]+)' ${bastille_jailsdir}/*/jail.conf; ifconfig -g epair | grep -Eo "_bastille[0-9]+$"; ifconfig -g epair | grep -v "bastille" | grep -Eo "e[0-9]+a_") | grep -Eo "[0-9]+")" "${_epair_list}" | sort -u)" + _epair_list="$(printf '%s\n' "$( (grep -Eos '(epair[0-9]+|bastille[0-9]+)' ${bastille_jailsdir}/*/jail.conf; ifconfig -g epair | grep -Eos "_bastille[0-9]+$"; ifconfig -g epair | grep -vs "bastille" | grep -Eos "e[0-9]+a_") | grep -Eos "[0-9]+")" "${_epair_list}" | sort -u)" done _epair_count=$(printf '%s' "${_epair_list}" | wc -l | awk '{print $1}') export _epair_list @@ -404,4 +404,4 @@ checkyesno() { return 1 ;; esac -} \ No newline at end of file +}