On 03/30/15 02:04, NGie Cooper wrote:
> On Mon, Mar 30, 2015 at 2:03 AM, NGie Cooper <yaneurab...@gmail.com> wrote:
>> On Mon, Mar 30, 2015 at 1:33 AM, Colin Percival <cperc...@freebsd.org> wrote:
>>>  cleanup() {
>>> +       if mount | grep -qE "devfs on ${DESTDIR}/dev"; then
>>> +               umount_loop ${DESTDIR}/dev 2>/dev/null
>>> +       fi
>>
>> if [ -c "${DESTDIR}/dev" ]; then
> 
> I meant:
> 
> [ -c "${DESTDIR}/dev/null" ]

Thanks!  I was looking for a way to express "if this is a mount point" but I
completely forgot that there are things which are reliably present *inside*
a devfs...

... and looking at what I committed earlier I see now that I missed a ^
at the start of the regex anyway, so my first attempt was both a bad idea
*and* wrong. ;-)

-- 
Colin Percival
Security Officer Emeritus, FreeBSD | The power to serve
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to