We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135888d commit 29976deCopy full SHA for 29976de
1 file changed
tools/antidote/install.sh
@@ -17,8 +17,13 @@ EOF
17
[ -r "${SCRIPT_DIR:-}/bootstrap.sh" ] && source "${SCRIPT_DIR:-}/bootstrap.sh"
18
19
readonly ZDOTDIR="${ZDOTDIR:-${HOME}}"
20
+readonly ANTIDOTE_DIR="${ZDOTDIR}/.antidote"
21
-git clone --depth=1 https://github.com/mattmc3/antidote.git "${ZDOTDIR}/.antidote"
22
+if [[ ! -d "${ANTIDOTE_DIR}" ]]; then
23
+ git clone --depth=1 https://github.com/mattmc3/antidote.git "${ANTIDOTE_DIR}"
24
+else
25
+ msg "antidote already installed at ${ANTIDOTE_DIR}, skipping"
26
+fi
27
28
cat <<EOF
29
0 commit comments