Cleanup broken symlinks at end of setup.

This commit is contained in:
David Tomaschik
2015-11-07 14:07:57 -08:00
parent bfdd2f4d6a
commit 7955b24be6

View File

@@ -204,6 +204,12 @@ function echo_pref {
echo "$1=\${$1:-${!1}}" echo "$1=\${$1:-${!1}}"
} }
function cleanup {
source ${BASEDIR}/dotfiles/zshrc.d/prune-broken-symlinks.zsh
prune-broken-symlinks ${HOME}/.zshrc.d
prune-broken-symlinks ${HOME}/bin
}
# Setup variables # Setup variables
read_saved_prefs read_saved_prefs
@@ -240,3 +246,4 @@ install_basic_dir "${BASEDIR}/bin" "${HOME}/bin"
(( $MINIMAL )) || postinstall (( $MINIMAL )) || postinstall
(( $INSTALL_KEYS )) && install_keys (( $INSTALL_KEYS )) && install_keys
save_prefs save_prefs
cleanup