commit 870b26af8eb58e98b8564561ebec8500165c593f
parent f496998f4f621bc2b96f972176d32efc2dd259f7
Author: Quentin Rameau <quinq@fifth.space>
Date: Sun, 29 Oct 2023 12:28:37 +0100
scripts: Fix non-portable find -perm /mode
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/mkproto b/scripts/mkproto
@@ -14,7 +14,7 @@ trap "rm -f scripts/proto" EXIT INT QUIT TERM
(set -e
echo d $prefix/bin $prefix/bin 755
-find . ! -name . -prune -type f -perm /111 |
+find . ! -name . -prune -type f \( -perm -u+x -o -perm -g+x -o -perm o+x \) |
sed "s@.*@c & $prefix/bin/& 755@"
echo d $manprefix/man1 $manprefix/man1 755