Never clean the GNUPGHOME if it is the standard directory.
authorWerner Koch <wk@gnupg.org>
Wed, 13 Feb 2019 14:48:09 +0000 (15:48 +0100)
committerWerner Koch <wk@gnupg.org>
Wed, 13 Feb 2019 14:48:09 +0000 (15:48 +0100)
tests/clean-socketdir

index ccd454e..7e3bcb8 100755 (executable)
@@ -4,6 +4,8 @@
 # set to the tests directory (which is the default). If the user
 # saw fit to override TESTS_ENVIRONMENT to use another home, we
 # must assume she knows what she is doing.
+[ "$GNUPGHOME" = "$HOME/.gnupg" ] && exit 0
+
 if [ "$GNUPGHOME" = "`/bin/pwd`" ]; then
     socketdir=`gpgconf --list-dirs socketdir`
     if [ -d "$socketdir" ]; then