From eebe8955140e73cfbd568cb4dab2ef35c7750455 Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:59:20 -0600 Subject: [PATCH] =?UTF-8?q?common:=20Add=20option=20to=20use=20=E2=80=9Cta?= =?UTF-8?q?gs=E2=80=9D=20as=20TARGET?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/local/share/bastille/common.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/common.sh b/usr/local/share/bastille/common.sh index 4b5da5c4..897a33ae 100644 --- a/usr/local/share/bastille/common.sh +++ b/usr/local/share/bastille/common.sh @@ -239,7 +239,9 @@ set_target() { target_all_jails else for _jail in ${_TARGET}; do - if [ ! -d "${bastille_jailsdir}/${_TARGET}" ] && echo "${_jail}" | grep -Eq '^[0-9]+$'; then + if grep -Eohw "${_jail}" "${bastille_jailsdir}/*/tags"; then + _jail="$(bastille tags ALL list ${_jail} | tr '\n' ' ')" + elif [ ! -d "${bastille_jailsdir}/${_TARGET}" ] && echo "${_jail}" | grep -Eq '^[0-9]+$'; then if get_jail_name "${_jail}" > /dev/null; then _jail="$(get_jail_name ${_jail})" else