fixes for new edit sub-command; supports stopped as it should

This commit is contained in:
Christer Edwards
2020-02-16 09:56:04 -07:00
parent 44989660d2
commit 26846d510e
2 changed files with 3 additions and 3 deletions

View File

@@ -57,10 +57,10 @@ if [ -z "${EDITOR}" ]; then
fi
if [ "${TARGET}" = 'ALL' ]; then
JAILS=$(jls name)
JAILS=$(bastille list jails)
fi
if [ "${TARGET}" != 'ALL' ]; then
JAILS=$(jls name | awk "/^${TARGET}$/")
JAILS=$(bastille list jails | awk "/^${TARGET}$/")
fi
for _jail in ${JAILS}; do