summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-09-22 13:27:49 +0500
committerEgor Tensin <egor@tensin.name>2026-09-22 13:27:49 +0500
commit253085268e36f99eae685e97a3f0b7da52ac45d6 (patch)
treed3277397543caad09bf125c66f9981db3ef6fbcb
parenttest/local: refactor things a little bit (diff)
downloadconfig-links-253085268e36f99eae685e97a3f0b7da52ac45d6.tar.gz
config-links-253085268e36f99eae685e97a3f0b7da52ac45d6.zip
db.sh: fix findutils warnings
-rw-r--r--lib/db.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/db.sh b/lib/db.sh
index 1199d58..7aa3c21 100644
--- a/lib/db.sh
+++ b/lib/db.sh
@@ -197,7 +197,7 @@ link_all_entries() {
find "$shared_root_dir" \
-mindepth 1 -maxdepth 1 \
- -\( -type d -o -type l -\) \
+ \( -type d -o -type l \) \
-regextype posix-basic \
-regex ".*/$var_name_regex\$" \
-printf '%P\0' |
@@ -209,7 +209,7 @@ link_all_entries() {
dump "shared directory: $shared_root_dir$shared_var_dir"
local shared_path
- find "$shared_root_dir$shared_var_dir/" -\( -type f -o -type l -\) -print0 |
+ find "$shared_root_dir$shared_var_dir/" \( -type f -o -type l \) -print0 |
while IFS= read -d '' -r shared_path; do
dump " shared file path: $shared_path"
local entry="${shared_path:${#shared_root_dir}}"