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
+1 -1
View File
@@ -57,7 +57,7 @@ fi
if [ -d "${bastille_jailsdir}/${TARGET}" ]; then
if ! grep -qw ".bastille" "${bastille_jailsdir}/${TARGET}/fstab"; then
if [ "$(jls name | grep -w "${TARGET}")" ]; then
if [ "$(jls name | awk "/^${TARGET}$/")" ]; then
# Update a thick container.
CURRENT_VERSION=$(/usr/sbin/jexec -l ${TARGET} freebsd-version 2>/dev/null)
if [ -z "${CURRENT_VERSION}" ]; then