diff options
author | Erik Stromdahl <erik.stromdahl@gmail.com> | 2017-06-01 19:29:17 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2017-08-20 22:40:19 +0200 |
commit | cee0499489e97384b72d47473606272d12ac96c0 (patch) | |
tree | db9d3a7e2a7be0cc3b1f597c9ae005a7c5c25c58 | |
parent | c5ad00c2e565eaae8e8b02b92d7f193852008c80 (diff) | |
download | mkinitcpio-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>
-rw-r--r-- | functions | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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" |