Prevent acting on non-bastille jails when using target ALL
This commit is contained in:
1 parent
bf5fd4ef2a
commit
8725e9ccac
1 file changed
+1
-1
@@ -145,7 +145,7 @@ clone|cmd|console|convert|cp|edit|export|htop|limits|mount|pkg|rename|service|st
|
||||
shift
|
||||
|
||||
if [ "${TARGET}" = 'ALL' ]; then
|
||||
JAILS=$(jls name)
|
||||
JAILS=$(ls ${bastille_jailsdir})
|
||||
else
|
||||
JAILS=$(jls name | awk "/^${TARGET}$/")
|
||||
|
||||
|
||||
Reference in new issue
Block a user