Refuse to "clean" / if something goes wrong upstream and we are passed

the wrong path

Approved by:    portmgr (self)
This commit is contained in:
Kris Kennaway 2004-09-26 21:59:48 +00:00
parent 15d5c4a51f
commit 82cb4888a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118447

View File

@ -8,6 +8,11 @@ noclean=$4
# directories to clean
cleandirs="/usr/local /usr/X11R6 /compat /var/db/pkg"
if [ `realpath ${chroot}` = "/" ]; then
# Don't spam the root file system if something has gone wrong!
exit 1
fi
#umount ${chroot}/proc
if [ ${arch} = "i386" ]; then