mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
Don't use zsh if not installed for cleanup.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user