Fix small grep/regex error

This commit is contained in:
Jose
2021-05-16 14:36:34 -04:00
parent 14b95626d3
commit d8fc1e9c05
3 changed files with 3 additions and 2 deletions

View File

@@ -3,6 +3,7 @@
======================
Version Description
1.0.89......Fix small grep/regex error.
1.0.88......Fix for properly copy host resolv.conf to jails.
1.0.87......Cosmetic changes, update help output.
1.0.86......Implement release native upgrade, re-add makewhatis since is needed by freebsd-update.

View File

@@ -411,7 +411,7 @@ required_updates()
# Check for critical and/or required updates and bug fixes and apply them.
# This is because not always the bastille version is increased on updates and/or bug fixes.
if [ -f "${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh" ]; then
if ! grep -qwE '{ZFS_DATASET_ORIGIN}(.*){ZFS_DATASET_TARGET}' ${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh; then
if ! grep -qw '{ZFS_DATASET_ORIGIN}.*{ZFS_DATASET_TARGET}' ${INSTALLPATH}${USRLOCAL}/share/${APPNAME}/rename.sh; then
echo "Required update found, performing update..."
echo "${DATE}: ${APPNAME} required update has been applied" >> ${EXTLOGFILE}
REQUIRED_UPDATE="1"

View File

@@ -1 +1 @@
1.0.88
1.0.89