diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-04-13 21:39:37 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2024-04-13 21:39:37 +0200 |
| commit | 201e36c823925ccb6d0b608b2ce985ec32b2e276 (patch) | |
| tree | 123fbb34bf911dbdbcd556b50786c7c90b66568b /dotter | |
| parent | f933fa6863fd689b4a2c30dca865baa051ca441e (diff) | |
rollback dotfiles and fix dotter
Diffstat (limited to 'dotter')
| -rwxr-xr-x | dotter | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |