aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/path.sh
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-04-05 20:52:15 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2022-04-05 20:52:15 +0200
commita89c8c7620d71565f80ca6e6dd1543e558e27857 (patch)
tree04f878fa5b62b972ef3831da9111c6beb4a87c9b /src/path.sh
parentdebian: 2.0-1 (diff)
parenttest: update comments (diff)
downloadconfig-links-a89c8c7620d71565f80ca6e6dd1543e558e27857.tar.gz
config-links-a89c8c7620d71565f80ca6e6dd1543e558e27857.zip
Merge tag 'v2.0.1' into debian
Diffstat (limited to '')
-rw-r--r--src/path.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/path.sh b/src/path.sh
index bf52a6f..8ac71a9 100644
--- a/src/path.sh
+++ b/src/path.sh
@@ -76,7 +76,7 @@ traverse_path() {
local -a abs_paths=()
local path
- while IFS= read -d '' -r path; do
+ readlink -z --canonicalize-missing -- ${paths[@]+"${paths[@]}"} | while IFS= read -d '' -r path; do
if [ -n "$must_exist" ] && [ ! -e "$path" ]; then
dump "must exist: $path" >&2
return 1
@@ -88,7 +88,7 @@ traverse_path() {
fi
abs_paths+=("$path")
- done < <( readlink -z --canonicalize-missing -- ${paths[@]+"${paths[@]}"} )
+ done
printf -- "$fmt" ${abs_paths[@]+"${abs_paths[@]}"}
}