- elif [ -f "$inhome" ] && cmp -s "$dot" "$inhome"; then
- needs setup "identical here but not yet symlinked"
- $act rm -f "$inhome"~
+ elif [ -f "$inhome" ] && [ -f "$dot" ]; then
+ if cmp -s "$dot" "$inhome"; then
+ needs setup "identical here but not yet symlinked"
+ $act rm -f "$inhome"~
+ $act ln -s "$basepath/$dot" "$inhome"~
+ $act mv -f "$inhome"~ "$inhome"
+ else
+ needs import "modified here"
+ $act rm -f "$dot"~
+ $act cp "$inhome" "$dot"~
+ $act mv -f "$dot"~ "$dot"
+ fi
+ elif [ -d "$inhome" ] && [ -d "$dot" ]; then
+ needs dirimport "directory here not yet symlinked"
+ $act mv "$dot" "$dot~"