cleanup also main dir when using subdir

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=9
This commit is contained in:
Adrian Schröter 2011-01-12 10:08:48 +00:00 committed by Git OBS Bridge
parent f5575d6a11
commit 74a4e0a9d1

View File

@ -229,6 +229,6 @@ fi
mv "$FILE/$MYSUBDIR" "${FILE}-${VERSION}" || exit 1
tar cf "$MYOUTDIR/${FILE}-${VERSION}.tar" $EXCLUDES "${FILE}-${VERSION}" || exit 1
rm -rf "${FILE}-${VERSION}"
rm -rf "${FILE}-${VERSION}" "$FILE"
exit 0