Updated dotstow.sh

This commit is contained in:
madmaurice 2015-10-08 21:00:40 +02:00
parent 0554277455
commit 28a456c0e6

View file

@ -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