Re: [PATCH] cogito recursive cg-add and cg-rm
- From
- Joshua T. Corbin <jcorbin@wunjo.org>
- Date
- Apr 26, 2005, 05:17 UTC
- Message-ID
- <200504260117.20205.jcorbin@wunjo.org>
- In-Reply-To
- <200504260027.03451.jcorbin@wunjo.org>
Small one line fix on top of the previos patch, apparently I was too hasty and didn't test cg-rm on a single file ;)
Signed-off-by: Joshua T. Corbin <jcorbin@wunjo.org>
Index: cg-rm =================================================================== --- bb131a04832677b22959ffe47f68900b94accc0c/cg-rm (mode:100755 sha1:f2d2e0c042fdf9496d53e833a50d960331e145b4) +++ 5b396356f2c852f95a4226e955e186f46851a1f0/cg-rm (mode:100755 sha1:7701a83878c1e02dbce3abc0e3f1290c56c1be16) @@ -40,7 +40,7 @@ shift done > $RMFILE rm -f $(cat $RMFILE) - rmdir $(find $RMDIRS -depth -type d) + [ -n "$RMDIRS" ] && rmdir $(find $RMDIRS -depth -type d) update-cache --remove -- $(cat $RMFILE) rm -f $RMFILE else