aboutsummaryrefslogtreecommitdiff
path: root/dotter
diff options
context:
space:
mode:
Diffstat (limited to 'dotter')
-rwxr-xr-xdotter9
1 files changed, 3 insertions, 6 deletions
diff --git a/dotter b/dotter
index 8117083..0cd78cd 100755
--- a/dotter
+++ b/dotter
@@ -7,12 +7,9 @@ PROFILE=.profile;
for f in $CONFIG $LOCAL $ZSH_ENV $PROFILE; do
- test "$f" -nt "$HOME/$f" && echo "updating $f"
- test "$f" -ot "$HOME/$f" && echo "fetching $f"
- test ! -e "$HOME/$f" && echo "installing $f"
+ test "$f" -nt "$HOME/$f" && echo "updating $f" && cp -u "$f" "$HOME/$f"
+ test "$f" -ot "$HOME/$f" && echo "fetching $f" && cp -u "$HOME/$f" "$f"
+ test ! -e "$HOME/$f" && echo "installing $f" && cp -u "$f" "$HOME/$f"
test ! -e "$(dirname "$HOME/$f")" && mkdir -p "$(dirname "$HOME/$f")"
-
- cp -u "$f" "$HOME/$f"
- cp -u "$HOME/$f" "$f"
done