diff options
author | gxlin <[email protected]> | 2021-07-16 10:14:10 +0800 |
---|---|---|
committer | gxlin <[email protected]> | 2021-07-16 10:14:10 +0800 |
commit | 58263cb458bc7ad9b123173f81f0912f341a702c (patch) | |
tree | 773180fc7d872cfd34a9047e5b9a887daf2ae719 /bootstrap.sh | |
parent | d4e1469e4b0c5aaf5c23be555e8b224f9254d781 (diff) | |
download | dotfiles-58263cb458bc7ad9b123173f81f0912f341a702c.tar.gz dotfiles-58263cb458bc7ad9b123173f81f0912f341a702c.tar.bz2 dotfiles-58263cb458bc7ad9b123173f81f0912f341a702c.zip |
Bug fix in bootstrap.sh
Diffstat (limited to 'bootstrap.sh')
-rwxr-xr-x | bootstrap.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index f0876f9..3d44bee 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -7,16 +7,17 @@ remove_and_link () { do if [ -L $HOME/$var ] && [ -e $HOME/$var ] && \ [ "$(readlink -- $HOME/$var)" = "$dotfiles_dir/$var" ]; then - return + continue fi rm -rf $HOME/$var ln -s $dotfiles_dir/$var $HOME/$var + echo "Linked: $HOME/$var -> $dotfiles_dir/$var" done } link_all () { - remove_and_link .ctags.d .mutt bin .alias .macos \ + remove_and_link .ctags.d .mutt bin .aliases .macos \ .mbsyncrc .msmtprc .tmux.conf .urlview .zshrc \ .vimrc .vim } |