svn commit: r280840 - head/release/tools

Colin Percival cperciva at freebsd.org
Mon Mar 30 09:10:52 UTC 2015


On 03/30/15 02:04, NGie Cooper wrote:
> On Mon, Mar 30, 2015 at 2:03 AM, NGie Cooper <yaneurabeya at gmail.com> wrote:
>> On Mon, Mar 30, 2015 at 1:33 AM, Colin Percival <cperciva at 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


More information about the svn-src-head mailing list