bastille: Bugfix for listing parallel jails in reverse

This commit is contained in:
tschettervictor
2025-05-03 19:16:19 -06:00
committed by GitHub
parent d5368c3499
commit 5b3c839fb9

View File

@@ -32,7 +32,7 @@
PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin PATH=${PATH}:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
BASTILLE_VERSION="0.14.20250420" BASTILLE_VERSION=aec0630
## check for config existence ## check for config existence
bastille_conf_check() { bastille_conf_check() {
@@ -253,14 +253,28 @@ case "${CMD}" in
shift 1 shift 1
;; ;;
*) *)
if ! set_target "${1}" >/dev/null 2>&1; then case "${CMD}" in
OPTIONS="${OPTIONS} ${1}" stop|destroy)
shift 1 if ! set_target "${1}" "reverse" >/dev/null 2>&1; then
else OPTIONS="${OPTIONS} ${1}"
XARGS_JAILS="${JAILS}" shift 1
shift 1 else
break XARGS_JAILS="${JAILS}"
fi shift 1
break
fi
;;
*)
if ! set_target "${1}" >/dev/null 2>&1; then
OPTIONS="${OPTIONS} ${1}"
shift 1
else
XARGS_JAILS="${JAILS}"
shift 1
break
fi
;;
esac
esac esac
done done
;; ;;
@@ -286,7 +300,5 @@ if [ -f "${SCRIPTPATH}" ]; then
fi fi
else else
error_exit "${SCRIPTPATH} not found."
error_exit "${SCRIPTPATH} not found."
fi fi