Mailing List Archive

[PATCH 1/1] scripts: Use POSIX compatible arguments for find
Some versions of find do not support -or or -not arguments but use -o
and ! arguments instead.

Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
---
tools/addgnupghome | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel