aboutsummaryrefslogtreecommitdiff
path: root/dotter
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2024-04-13 21:39:37 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2024-04-13 21:39:37 +0200
commit201e36c823925ccb6d0b608b2ce985ec32b2e276 (patch)
tree123fbb34bf911dbdbcd556b50786c7c90b66568b /dotter
parentf933fa6863fd689b4a2c30dca865baa051ca441e (diff)
rollback dotfiles and fix dotter
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