tests/openpgp: Fix file removal.

* tests/openpgp/version.test: Fix file removal.

Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-01-22 12:06:06 +01:00
parent 5ba4f6047b
commit 629284120f
1 changed files with 1 additions and 1 deletions

View File

@ -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