From 22b92437c1ae672297bed8567b335ef7da100103 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sat, 9 Feb 2013 15:46:02 -0500 Subject: Fix link detection when target is itself a symlink This shows up on OSX where /tmp is actually a symlink to /private/tmp. --- dotfiles/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dotfiles/utils.py b/dotfiles/utils.py index 15a82d8..28f2212 100644 --- a/dotfiles/utils.py +++ b/dotfiles/utils.py @@ -19,5 +19,4 @@ def is_link_to(path, target): def normalize(path): return os.path.normcase(os.path.normpath(path)) return islink(path) and \ - normalize(realpath(path)) == normalize(target) - + normalize(realpath(path)) == normalize(realpath(target)) -- cgit v1.2.3