X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=id-deb-build%2Fid-pbuild.sh;h=656b37475e23a608cc079745faceb1b557215b05;hb=59853e1a8164b9fab87c694f63076796849da3ac;hp=c04e2d76d33fbf3174a91fd721c422f1105bc2eb;hpb=07d3ab2843509e62a02650dff7e6ee1c05f921e6;p=git-tools-moved-to-github.git diff --git a/id-deb-build/id-pbuild.sh b/id-deb-build/id-pbuild.sh index c04e2d7..656b374 100755 --- a/id-deb-build/id-pbuild.sh +++ b/id-deb-build/id-pbuild.sh @@ -73,7 +73,7 @@ if test ! -x $MKDEBSRC; then fi if $upload; then - cd deb-src + : else if test "${SUDO_USER}"; then if test ! -d deb-src; then @@ -81,7 +81,7 @@ else fi else if test -d deb-src; then - rm -rf deb-src + rm -f deb-src/*.gz if test $? -ne 0; then echo "deb-src could not be removed. Remove deb-src manually" exit 1 @@ -89,8 +89,8 @@ else fi $MKDEBSRC fi - cd deb-src fi +cd deb-src for f in *.dsc; do if test -f "$f"; then