diff --git a/update_antidote.sh b/update_antidote.sh index ad4c83b..6e7d159 100755 --- a/update_antidote.sh +++ b/update_antidote.sh @@ -1,7 +1,13 @@ #!/usr/bin/env zsh +! [[ -z $DEBUG ]] && set -x + # clone antidote if necessary -[[ -e ~/.antidote ]] || git clone https://github.com/mattmc3/antidote.git ~/.antidote +if [[ -d ~/.antidote ]]; then + git -C ~/.antidote pull +else + git clone https://github.com/mattmc3/antidote.git ~/.antidote +fi # source antidote . ~/.antidote/antidote.zsh