aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-02-04 12:27:50 +0100
committerEgor Tensin <Egor.Tensin@gmail.com>2023-02-04 12:27:50 +0100
commit46349b5e772b40bb0dda614ad4317200408f2e67 (patch)
treed037eeae6d635d548375b4d23375eb14e3764fdf /src
parentadd an "integration" test (diff)
downloadconfig-links-46349b5e772b40bb0dda614ad4317200408f2e67.tar.gz
config-links-46349b5e772b40bb0dda614ad4317200408f2e67.zip
db.sh: fix Xenial tests
Please see the parent commit for the description of the problem.
Diffstat (limited to '')
-rw-r--r--src/db.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/db.sh b/src/db.sh
index 201ad25..94a4a7d 100644
--- a/src/db.sh
+++ b/src/db.sh
@@ -192,6 +192,7 @@ shared_file_present() {
}
link_all_entries() {
+ local -a shared_var_dirs=()
local shared_var_dir
find "$shared_root_dir" \
@@ -201,6 +202,10 @@ link_all_entries() {
-regex ".*/$var_name_regex\$" \
-printf '%P\0' |
while IFS= read -d '' -r shared_var_dir; do
+ shared_var_dirs+=("$shared_var_dir")
+ done
+
+ for shared_var_dir in ${shared_var_dirs[@]+"${shared_var_dirs[@]}"}; do
dump "shared directory: $shared_root_dir$shared_var_dir"
local shared_path