[Sugar-devel] [PATCH] Cleanup temporary files on startup (v2)

Bernie Innocenti bernie at codewiz.org
Fri May 14 01:40:36 EDT 2010


El Thu, 13-05-2010 a las 20:54 +0200, Sascha Silbe escribió:
> On Thu, May 13, 2010 at 02:42:32PM -0400, Bernie Innocenti wrote:
> 
> > +# Remove temporary files. See http://bugs.sugarlabs.org/ticket/1876
> > +rm -rf $HOME/.sugar/${SUGAR_PROFILE:-default}/data/*
> Why -rf? There should only be hard links, i.e. files in there (=> no -r 
> required).

Indeed, I'll remove the -r then.


>  Also they are created by the data store, so they should have 
> the user running the rm as owner (even with Rainbow) and be writable, so 
> no -f required.

-f avoids a warning in case the directory was empty.


-- 
   // Bernie Innocenti - http://codewiz.org/
 \X/  Sugar Labs       - http://sugarlabs.org/



More information about the Sugar-devel mailing list