diff options
-rwxr-xr-x | patches/gnupg/gnupg.SlackBuild | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/patches/gnupg/gnupg.SlackBuild b/patches/gnupg/gnupg.SlackBuild index 0fb05862..9b4bddc2 100755 --- a/patches/gnupg/gnupg.SlackBuild +++ b/patches/gnupg/gnupg.SlackBuild @@ -371,7 +371,8 @@ cd $PKG makepkg -l y -c n $REPOS/gnupg-$VERSION-$ARCH-$BUILD.tgz || exit $ERROR_MKPKG # Clean up the extra stuff: -if [ "$1" = "--cleanup" ]; then - rm -rf $TMP/gnupg-$VERSION - rm -rf $PKG + +if [ "$CLEANUP" == "yes" ]; then + rm -rf $TMP fi + |