On Fri, 2007-06-15 at 14:12 +0200, Loïc Minier wrote: > On Wed, May 16, 2007, Karl Hegbloom wrote: > > But what if DEB_BUILDDIR is the the top-level directory > > Yeah, it shouldn't rm -rf in this case indeed. > > > It should only remove that if it created it, right? > > Yes, it does mkdir though.
There should probably also be a test to ensure that either DEB_BUILDDIR is not CURDIR before the rm -rf, or that no mkdir is run if it is...