From b55bfd964584a255d74932e7c6c0e8482ba63620 Mon Sep 17 00:00:00 2001
From: Robby Workman <rworkman@slackware.com>
Date: Tue, 3 Apr 2018 19:14:27 -0500
Subject: post-functions.sh: Respect $ROOT in looknew()

Thanks again to burdi01 on LQ.
---
 files/post-functions.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/post-functions.sh b/files/post-functions.sh
index e4f456f..2eba4d2 100644
--- a/files/post-functions.sh
+++ b/files/post-functions.sh
@@ -134,7 +134,7 @@ looknew() {
 	fi
 
 	echo -e "\nSearching for NEW configuration files"
-	FILES=$(find /etc /var/yp /usr/share/vim -name "*.new" ${ONLY_NEW_DOTNEW} \
+	FILES=$(find ${ROOT}/etc ${ROOT}/var/yp ${ROOT}/usr/share/vim -name "*.new" ${ONLY_NEW_DOTNEW} \
 		-not -name "rc.inet1.conf.new" \
 		-not -name "group.new" \
 		-not -name "passwd.new" \
-- 
cgit v1.2.3