From ba1157b732ee9ce0ca12d4b5c268e06c785bd4bf Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Mon, 14 Apr 2025 21:05:03 -0600 Subject: [PATCH] list: Use priority for list all --- usr/local/share/bastille/list.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr/local/share/bastille/list.sh b/usr/local/share/bastille/list.sh index efef7522..64a65c96 100644 --- a/usr/local/share/bastille/list.sh +++ b/usr/local/share/bastille/list.sh @@ -83,8 +83,10 @@ list_all(){ JAIL_LIST="${TARGET}" else # Query all info for all jails(default). - JAIL_LIST=$(ls --color=never "${bastille_jailsdir}" | sed "s/\n//g") + set_target ALL + JAIL_LIST=${JAILS} fi + for _JAIL in ${JAIL_LIST}; do if [ -f "${bastille_jailsdir}/${_JAIL}/jail.conf" ]; then JAIL_NAME=$(grep -h -m 1 -e "^.* {$" "${bastille_jailsdir}/${_JAIL}/jail.conf" 2> /dev/null | awk '{ print $1 }')