aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Leppänen <[email protected]>2018-12-11 07:42:33 +0000
committerWerner Koch <[email protected]>2018-12-11 07:44:33 +0000
commitdfcc5e6d3ec91f547feb78e442946e729b49878c (patch)
treee1519e6a3ce413deddb595dd35dff4836f3a8faa
parentscd: Make "learn" report about KDF data object. (diff)
downloadgnupg-dfcc5e6d3ec91f547feb78e442946e729b49878c.tar.gz
gnupg-dfcc5e6d3ec91f547feb78e442946e729b49878c.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