Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=kdetesting.git;a=commitdiff;h=8f40d6d9d114b6d9fdfa064a1e11a21beab8b5b7
commit 8f40d6d9d114b6d9fdfa064a1e11a21beab8b5b7 Author: crazy <cr...@frugalware.org> Date: Sat Feb 6 19:58:18 2010 +0100 util.sh * fix that remove of empty dirs somewhat * I still don't like it .. diff --git a/source/include/util.sh b/source/include/util.sh index 9270e93..0167ad0 100644 --- a/source/include/util.sh +++ b/source/include/util.sh @@ -565,8 +565,8 @@ Fcleandestdir() { subdestdir="`Fsubdestdir "$i"`" _F_treecmp_findopts='! -type d' \ Ftreecmp "$Fdestdir" "$subdestdir" __Ftreecmp_cleandestdir - find "$Fdestdir" -depth -type d -empty ! -name usr -exec rm -rfv {} \; || Fdie - find "$subdestdir" -depth -type d -empty ! -name usr -exec rm -rfv {} \; || Fdie + [ -d "$Fdestdir/usr" ] && find "$Fdestdir/usr" -depth -type d -empty -exec rm -rfv {} \; + [ -d "$subdestdir/usr" ] && find "$subdestdir/usr" -depth -type d -empty -exec rm -rfv {} \; done } _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git