From 984e108b06b8fa6096a97b87cdd6175c30365a3d Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 11 Jun 2025 22:30:09 -0600 Subject: [PATCH] fix shellcheck --- usr/local/share/bastille/rename.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/share/bastille/rename.sh b/usr/local/share/bastille/rename.sh index b8b7b3dd..2fe7e1ef 100644 --- a/usr/local/share/bastille/rename.sh +++ b/usr/local/share/bastille/rename.sh @@ -141,7 +141,7 @@ update_jailconf_vnet() { # For if_bridge network type if [ "${bastille_network_vnet_type}" = "if_bridge" ]; then - local _epair_num=$(echo "${_old_if_prefix}" | grep -Eo "[0-9]+") + local _epair_num="$(echo "${_old_if_prefix}" | grep -Eo "[0-9]+")" local _old_host_epair="${_if}" local _old_jail_epair="${_old_if_prefix%a}b_${_old_if_suffix}" @@ -200,7 +200,7 @@ update_jailconf_vnet() { # For netgraph network type elif [ "${bastille_network_vnet_type}" = "netgraph" ]; then - local _ngif_num=$(echo "${_old_if_prefix}" | grep -Eo "[0-9]+") + local _ngif_num="$(echo "${_old_if_prefix}" | grep -Eo "[0-9]+")" local _old_ngif="${_if}" if [ "$(echo -n "ng${_ngif_num}_${NEWNAME}" | awk '{print length}')" -lt 16 ]; then