bootstrap: allow chained symlinks

This commit is contained in:
Fernando Schauenburg 2021-08-09 11:27:09 +02:00
parent 5f22148d5a
commit ad9b5e0a77

View file

@ -127,7 +127,7 @@ prune_link() { # Remove $1 if it's a broken link to a dotfile script.
}
file_link() { # Make sure $1 is a link to $2.
target="$(realpath "$2")"
target="$(realpath -s "$2")"
if [ "$(readlink "$1")" = "$target" ]; then
info "OK: $1"
else