[PATCH 1/1] scripts: Use POSIX compatible arguments for find

Tomi Leppänen tomi.leppanen at jolla.com
Mon Dec 10 15:50:04 CET 2018


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




More information about the Gnupg-devel mailing list