From d83544f931ccfe3bb9b1eabef56be4a8f904eff6 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 23 Mar 2013 03:44:56 -0400 Subject: [PATCH] Force delete dest if exists --- zsh/lib/util | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/lib/util b/zsh/lib/util index 16b30b36..7213cbe5 100644 --- a/zsh/lib/util +++ b/zsh/lib/util @@ -11,8 +11,8 @@ function do_log { # Check if a symlink exists before trying to create it function do_link { - if [ -h "$2" ]; then - rm "$2" + if [ -e "$2" ]; then + rm -rf "$2" fi if [ ! -e "$2" ]; then ln -sf "$1" "$2"