From 104a154a91d47a5d35a2ac63efa9d4dc79e14d3b Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 11 Jun 2025 23:13:55 -0600 Subject: [PATCH] Update clone.sh --- usr/local/share/bastille/clone.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/clone.sh b/usr/local/share/bastille/clone.sh index e414d955..1daa93d7 100644 --- a/usr/local/share/bastille/clone.sh +++ b/usr/local/share/bastille/clone.sh @@ -266,7 +266,7 @@ update_jailconf_vnet() { local _new_if_prefix="$(echo ${_new_host_epair} | awk -F'_' '{print $1}')" local _new_if_suffix="$(echo ${_new_host_epair} | awk -F'_' '{print $2}')" - if grep "${_old_if_suffix}" "${_jail_conf}" | grep "jib addm"; then + if grep "${_old_if_suffix}" "${_jail_conf}" | grep -oq "jib addm"; then # For -V jails # Replace host epair name in jail.conf sed -i '' "s|jib addm ${_old_if_suffix}|jib addm ${_new_if_suffix}|g" "${_jail_conf}"