Introduction
Introduction Statistics Contact Development Disclaimer Help
scripts: Fix non-portable usage of find -maxdepth - sbase - suckless unix tools
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
commit f496998f4f621bc2b96f972176d32efc2dd259f7
parent 6fc6bbbf7141533ef8506ae8085eef594b2345fe
Author: Quentin Rameau <[email protected]>
Date: Sun, 29 Oct 2023 12:28:36 +0100
scripts: Fix non-portable usage of find -maxdepth
Diffstat:
M scripts/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
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.