From dd22d46bb63b8e095021ed7201552a8f839d838b Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 3 Nov 2025 07:00:34 -0700 Subject: [PATCH] rename: fix repair num --- usr/local/share/bastille/rename.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/usr/local/share/bastille/rename.sh b/usr/local/share/bastille/rename.sh index e59fd0d5..d4321d1a 100644 --- a/usr/local/share/bastille/rename.sh +++ b/usr/local/share/bastille/rename.sh @@ -155,9 +155,9 @@ update_jailconf_vnet() { local new_jail_epair="e${epair_num}b_${old_if_suffix}" else get_bastille_epair_count - local epair_num=1 - while echo "${BASTILLE_EPAIR_LIST}" | grep -oq "bastille${epair_num}"; do - bastille_epair_num=$((epair_num + 1)) + local bastille_epair_num=1 + while echo "${BASTILLE_EPAIR_LIST}" | grep -oq "bastille${bastille_epair_num}"; do + bastille_epair_num=$((bastille_epair_num + 1)) done local new_host_epair="e${epair_num}a_bastille${bastille_epair_num}" local new_jail_epair="e${epair_num}b_bastille${bastille_epair_num}"