Code improvements, use awk for exact match

This commit is contained in:
Jose
2020-02-05 07:00:11 -04:00
parent 9a1b673721
commit 498029a13c
12 changed files with 12 additions and 12 deletions

View File

@@ -53,7 +53,7 @@ if [ "${TARGET}" = 'ALL' ]; then
JAILS=$(jls name)
fi
if [ "${TARGET}" != 'ALL' ]; then
JAILS=$(jls name | grep -w "${TARGET}")
JAILS=$(jls name | awk "/^${TARGET}$/")
fi
for _jail in ${JAILS}; do