aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-04-17 22:45:49 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-04-17 22:45:49 +0800
commit65fddf693915cbfecaccd76b83f1e9b56094ac95 (patch)
tree089bb9a7629a55e104964b244bfeaf9be75ffe41 /Mk
parent817c4001a59de795f48231ffc7c11e8579a2ffc3 (diff)
downloadfreebsd-ports-gnome-65fddf693915cbfecaccd76b83f1e9b56094ac95.tar.gz
freebsd-ports-gnome-65fddf693915cbfecaccd76b83f1e9b56094ac95.tar.zst
freebsd-ports-gnome-65fddf693915cbfecaccd76b83f1e9b56094ac95.zip
- Fix HOMEDIR handling to not exclude all directories for ports without USERS
Reported by: antoine With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/Scripts/check_leftovers.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mk/Scripts/check_leftovers.sh b/Mk/Scripts/check_leftovers.sh
index f5cedfe6b9f3..a85ac5d13dd4 100644
--- a/Mk/Scripts/check_leftovers.sh
+++ b/Mk/Scripts/check_leftovers.sh
@@ -40,7 +40,7 @@ if [ -n "${LOCALBASE}" ]; then
else
LOCALBASE=$(make -C ${portdir} -VLOCALBASE)
fi
-homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') '$1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
+homedirs=$(awk -F: -v users=$(make -C ${portdir} -V USERS|sed -e 's, ,|,g;/^$/d') 'users && $1 ~ users {print $9}' ${PORTSDIR}/UIDs|sort -u|sed -e "s|/usr/local|${PREFIX}|")
plistsub_sed=$(make -C ${portdir} -VPLIST_SUB_SED)
tmpplist=$(make -C ${portdir} -VTMPPLIST)