Updated dotstow.sh
This commit is contained in:
parent
0554277455
commit
28a456c0e6
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ stow() {
|
||||||
if [ -e "$ctarget" ]; then
|
if [ -e "$ctarget" ]; then
|
||||||
if [ -L "$ctarget" -a "$(readlink -f "$ctarget")" == "$(realpath "$csource")" ]; then # Link already exists. Skip
|
if [ -L "$ctarget" -a "$(readlink -f "$ctarget")" == "$(realpath "$csource")" ]; then # Link already exists. Skip
|
||||||
[ $VERBOSE -gt 0 ] && echo "Skipping $ctarget..."
|
[ $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"
|
stow "$csource" "$ctarget"
|
||||||
else # No can do.
|
else # No can do.
|
||||||
echo "Aborting. $ctarget exists, but is not owned by dotstow"; exit 1
|
echo "Aborting. $ctarget exists, but is not owned by dotstow"; exit 1
|
||||||
|
|
Loading…
Reference in a new issue