From: František Dvořák Date: Wed, 17 Apr 2013 20:31:47 +0000 (+0200) Subject: Try delete without sudo first. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=197e00babfb42f3ecc95b3d41e53caebd2970590;p=mock.git Try delete without sudo first. --- diff --git a/mock.sh b/mock.sh index 1d36c10..717eced 100755 --- a/mock.sh +++ b/mock.sh @@ -143,7 +143,7 @@ release_sign() { while test -n "$1"; do case "$1" in clean) - sudo rm -rfv results + [ -d results ] && (rm -rfv results || sudo rm -rfv results) if test "$CONF" = "pbuilder"; then rm -rfv $DEBREPO/stable $DEBREPO/unstable $DEBREPO/$DEBDISTRO $DEBREPO/*.db mkdir -p $DEBREPO/$DEBDISTRO