From c80e99245a62c724be3ffaaed2c2d897a215238a Mon Sep 17 00:00:00 2001 From: Blallo Date: Mon, 8 May 2023 23:55:41 +0200 Subject: [PATCH] Fix update_antidote --- update_antidote.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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