Don't use zsh if not installed for cleanup.

This commit is contained in:
David Tomaschik
2016-02-23 10:01:13 -08:00
parent d56db56d2b
commit 1c4e2fb7dd

View File

@@ -237,6 +237,9 @@ function echo_pref {
function cleanup { function cleanup {
# Needs zsh # Needs zsh
if ! test -x /usr/bin/zsh ; then
return 0
fi
/usr/bin/zsh >/dev/null 2>&1 <<EOF /usr/bin/zsh >/dev/null 2>&1 <<EOF
source ${BASEDIR}/dotfiles/zshrc.d/prune-broken-symlinks.zsh source ${BASEDIR}/dotfiles/zshrc.d/prune-broken-symlinks.zsh
prune-broken-symlinks -y ${HOME}/.zshrc.d prune-broken-symlinks -y ${HOME}/.zshrc.d