Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-tools.git;a=commitdiff;h=dff917bb9aaaecc2645ca5407042341be58187ec
commit dff917bb9aaaecc2645ca5407042341be58187ec Author: Miklos Vajna <[EMAIL PROTECTED]> Date: Thu Jun 12 21:30:28 2008 +0200 repoman del: allow removing empty dirs as well diff --git a/repoman b/repoman index fb1e4ec..d023411 100755 --- a/repoman +++ b/repoman @@ -114,7 +114,12 @@ server() for i in "$@" do # strip leading / and any .. - rm $rmopts "`echo $i|sed 's|^/||;s|\.\./||g'`" + target=`echo $i|sed 's|^/||;s|\.\./||g'` + if [ -f $target ]; then + rm $rmopts $target + elif [ -d $target ]; then + rmdir $rmopts $target + fi done ;; _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
