diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-05 20:52:15 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-04-05 20:52:15 +0200 |
commit | a89c8c7620d71565f80ca6e6dd1543e558e27857 (patch) | |
tree | 04f878fa5b62b972ef3831da9111c6beb4a87c9b /src/path.sh | |
parent | debian: 2.0-1 (diff) | |
parent | test: update comments (diff) | |
download | config-links-a89c8c7620d71565f80ca6e6dd1543e558e27857.tar.gz config-links-a89c8c7620d71565f80ca6e6dd1543e558e27857.zip |
Merge tag 'v2.0.1' into debian
Diffstat (limited to 'src/path.sh')
-rw-r--r-- | src/path.sh | 4 |
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[@]}"} } |