common: fix brackets []

This commit is contained in:
tschettervictor
2025-01-09 23:30:48 -07:00
committed by GitHub
parent fb145b3441
commit d1e475e3d1

View File

@@ -147,7 +147,7 @@ set_target() {
target_all_jails
else
for _jail in ${_TARGET}; do
if [ ! -d "${bastille_jailsdir}/${_TARGET}" ] && [ echo "${_jail}" | grep -Eq '^[0-9]+$' ]; then
if [ ! -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