Fix small grep/regex error
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user