sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

commit f496998f4f621bc2b96f972176d32efc2dd259f7
parent 6fc6bbbf7141533ef8506ae8085eef594b2345fe
Author: Quentin Rameau <quinq@fifth.space>
Date:   Sun, 29 Oct 2023 12:28:36 +0100

scripts: Fix non-portable usage of find -maxdepth

Diffstat:
Mscripts/mkproto | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/mkproto b/scripts/mkproto @@ -14,11 +14,11 @@ trap "rm -f scripts/proto" EXIT INT QUIT TERM (set -e echo d $prefix/bin $prefix/bin 755 -find . -maxdepth 1 -type f -perm /111 | +find . ! -name . -prune -type f -perm /111 | sed "s@.*@c & $prefix/bin/& 755@" echo d $manprefix/man1 $manprefix/man1 755 -find . -maxdepth 1 -name '*.1' | +find . ! -name . -prune -name '*.1' | sed "s@.*@c & $manprefix/man1/& 644@") > $proto trap "" EXIT INT QUIT TERM