From 28a456c0e6bd679bc9442fe888560dd2effcafec Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Thu, 8 Oct 2015 21:00:40 +0200 Subject: [PATCH] Updated dotstow.sh --- dotstow.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotstow.sh b/dotstow.sh index f2eb79e..f7ae5b4 100755 --- a/dotstow.sh +++ b/dotstow.sh @@ -40,7 +40,7 @@ stow() { if [ -e "$ctarget" ]; then if [ -L "$ctarget" -a "$(readlink -f "$ctarget")" == "$(realpath "$csource")" ]; then # Link already exists. Skip [ $VERBOSE -gt 0 ] && echo "Skipping $ctarget..." - elif [ -d "$ctarget" -a -d "$csource" ]; then # Dictionary exists. Enter + elif [ ! -L "$ctarget" -a -d "$ctarget" -a -d "$csource" ]; then # Dictionary exists. Enter stow "$csource" "$ctarget" else # No can do. echo "Aborting. $ctarget exists, but is not owned by dotstow"; exit 1