From cee0499489e97384b72d47473606272d12ac96c0 Mon Sep 17 00:00:00 2001 From: Erik Stromdahl Date: Thu, 1 Jun 2017 19:29:17 +0200 Subject: 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 --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3-24-g4f1b