summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Leppänen <tomi.leppanen@jolla.com>2018-12-11 08:42:33 +0100
committerWerner Koch <wk@gnupg.org>2018-12-11 08:42:33 +0100
commit2c35e67e3475ec38ff49953d79bd0f734d6db542 (patch)
tree248154d63a031ada6a6e00e41d5bce4d58001559
parentg10: Fix print_pubkey_info new line output. (diff)
downloadgnupg2-2c35e67e3475ec38ff49953d79bd0f734d6db542.tar.xz
gnupg2-2c35e67e3475ec38ff49953d79bd0f734d6db542.zip
tools: Use POSIX compatible arguments for find
* tools/addgnupghome (filelist): Remove bashism.
-rwxr-xr-xtools/addgnupghome2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/addgnupghome b/tools/addgnupghome
index e13c3cd01..718b2226c 100755
--- a/tools/addgnupghome
+++ b/tools/addgnupghome
@@ -107,7 +107,7 @@ if [ ! -d /etc/skel/.gnupg ]; then
exit 1
fi
cd "/etc/skel/.gnupg" || (error "error cd-ing to \`/etc/skel/.gnupg'"; exit 1)
-filelist=$(find . \( -type f -or -type d \) -not -name '*~' -not -name . -print)
+filelist=$(find . \( -type f -o -type d \) '!' -name '*~' '!' -name . -print)
if ! umask 0077 ; then