mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Refuse to "clean" / if something goes wrong upstream and we are passed
the wrong path Approved by: portmgr (self)
This commit is contained in:
parent
15d5c4a51f
commit
82cb4888a4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=118447
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user