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