On Thu, Oct 09, 2003 at 09:26:11AM +0200, Stefano Zacchiroli wrote: > On Thu, Oct 09, 2003 at 01:29:00AM +0200, Sven Luther wrote: > > Ideally, i should erase the ld.conf, verify that the directory is empty, > > and then rmdir it. I have no idea how i test that a directory is empty > > though. > > DIRNAME=... > it [ "`find $DIRNAME`" == "$DIRNAME" ]; then > echo "dir is empty" > else > echo "dir is not empty" > fi > > should do the job ...
Mmm, i think i prefer the solution proposed by Martin. We do a rmdir, and if it fails, it is because 3.06 is not empty, and this is no more our problem. Friendly, Sven Luther

