summaryrefslogtreecommitdiffstats
path: root/functions
diff options
context:
space:
mode:
authorErik Stromdahl <erik.stromdahl@gmail.com>2017-06-01 19:29:17 +0200
committerDave Reisner <dreisner@archlinux.org>2017-08-20 22:40:19 +0200
commitcee0499489e97384b72d47473606272d12ac96c0 (patch)
treedb9d3a7e2a7be0cc3b1f597c9ae005a7c5c25c58 /functions
parentc5ad00c2e565eaae8e8b02b92d7f193852008c80 (diff)
downloadmkinitcpio-cee0499489e97384b72d47473606272d12ac96c0.tar.gz
mkinitcpio-cee0499489e97384b72d47473606272d12ac96c0.tar.xz
functions: add_full_dir: recursive filter
By passing the filter glob in all recursive invocations of add_full_dir, the filtering is performed on all subdirs and not just the top dir. This makes the implementation correspond to the documented behavior in the man page. Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Diffstat (limited to 'functions')
-rw-r--r--functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/functions b/functions
index 1a3703f..6cc74a4 100644
--- a/functions
+++ b/functions
@@ -445,7 +445,7 @@ add_full_dir() {
add_symlink "$f" "$(readlink "$f")"
fi
elif [[ -d $f ]]; then
- add_full_dir "$f"
+ add_full_dir "$f" "$filter"
elif [[ -f $f ]]; then
if [[ $f = $filter ]]; then
add_file "$f"