Prevent acting on non-bastille jails when using target ALL

This commit is contained in:
Carsten BÃcker
2020-09-30 09:05:44 +00:00
parent bf5fd4ef2a
commit 8725e9ccac

View File

@@ -145,7 +145,7 @@ clone|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|service|st
shift shift
if [ "${TARGET}" = 'ALL' ]; then if [ "${TARGET}" = 'ALL' ]; then
JAILS=$(jls name) JAILS=$(ls ${bastille_jailsdir})
else else
JAILS=$(jls name | awk "/^${TARGET}$/") JAILS=$(jls name | awk "/^${TARGET}$/")