diff options
author | Erich Eckner <git@eckner.net> | 2020-05-14 09:54:09 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-05-14 09:54:09 +0200 |
commit | a1bb43641b5a83d6caa0ade698d28657c12cdcd9 (patch) | |
tree | 284b215e09c72b9c4a51957db01168f23de6d5c9 | |
parent | 4b2f9bdcdffc530d090ec9962402989aa7c91f9a (diff) | |
download | arch-mirror-a1bb43641b5a83d6caa0ade698d28657c12cdcd9.tar.xz |
arch-mirror: follow top-most symlink of ${mirror_dir}
-rwxr-xr-x | arch-mirror | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch-mirror b/arch-mirror index 8d3baec..1ccde57 100755 --- a/arch-mirror +++ b/arch-mirror @@ -188,7 +188,7 @@ printf '%s\n' "${far_mirrors[@]}" "${close_mirrors[@]}" \ done # refresh symlinks -find "${mirror_dir}" \ +find "${mirror_dir}/" \ -name '.*' -prune , \ \( -name '*.files.tar.?z' -o -name '*.db.tar.?z' \) -printf '%p\n' \ | sed ' @@ -233,7 +233,7 @@ while read -r var date; do dates["${var}.max"]="${date}"; fi done < <( - find "${mirror_dir}" -maxdepth 3 \ + find "${mirror_dir}/" -maxdepth 3 \ -name '.*' -prune , \ -type f \( \ -name 'lastsync' -o -name 'lastupdate' \ |