From ad9b5e0a771d0da324cd4c0ebee42b2061e2a7c2 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 9 Aug 2021 11:27:09 +0200 Subject: [PATCH] bootstrap: allow chained symlinks --- bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap b/bootstrap index b138609..ebcd7aa 100755 --- a/bootstrap +++ b/bootstrap @@ -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