[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Checking if directory is empty in postrm



Cylord <C@Cryogen.com> wrote:

> if [ "$(echo * ? .*)" = "* ? . .." ] ; then echo REALLY empty dir; fi

You also need .? or else you're subject to:

mkdir emptydir2; touch .*

-- 
Raul


Reply to: