From: rhatto Date: Fri, 28 Nov 2008 03:32:39 +0000 (+0000) Subject: fix X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=0e18ac2dcf22eed6214a61357bc4349cf9a31b19;p=simplepkg.git fix git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@583 04377dda-e619-0410-9926-eae83683ac58 --- diff --git a/trunk/src/createpkg b/trunk/src/createpkg index bd2a2ea..70bc4d5 100644 --- a/trunk/src/createpkg +++ b/trunk/src/createpkg @@ -578,10 +578,10 @@ if [ $REMOVE_OLD_PACKAGE -eq $on ]; then fi done - svn_remove_empty_folders . - cd $cwd + svn_remove_empty_folders . + else # Using -mindepth 2 so it doesn't delete the new package find $MAKEPKG_REPOS -mindepth 2 -name "$PACKAGE-*-*-*.tgz" -o -name "$PACKAGE-*-*-*.meta" -exec rm {} 2>/dev/null \;