tests/openpgp: Fix file removal.
authorJustus Winter <justus@g10code.com>
Fri, 22 Jan 2016 11:06:06 +0000 (12:06 +0100)
committerJustus Winter <justus@g10code.com>
Tue, 23 Feb 2016 10:58:52 +0000 (11:58 +0100)
* tests/openpgp/version.test: Fix file removal.

Signed-off-by: Justus Winter <justus@g10code.com>
tests/openpgp/version.test

index cb3ffa8..7b9fa4b 100755 (executable)
@@ -31,7 +31,7 @@ if [ -d private-keys-v1.d ]; then
     rmdir private-keys-v1.d
 fi
 for i in pubring.gpg pubring.gpg~ trustdb.gpg trustdb.gpg~ ; do
-  [ -d "$i" ] && rm "$i"
+  [ -f "$i" ] && rm "$i"
 done
 
 # Now start the agent right away, so that there is only one place