Improve git-prompt installation script

This commit is contained in:
lachtan
2022-09-30 18:48:22 +02:00
parent cf0f047285
commit 215a2fe264

View File

@@ -5,4 +5,7 @@ set -u
readonly REPO="https://github.com/magicmonty/bash-git-prompt.git" readonly REPO="https://github.com/magicmonty/bash-git-prompt.git"
git clone "$REPO" "$GIT_PROMPT_PATH" --depth=1 if [[ ! -d "$GIT_PROMPT_PATH" ]]; then
git clone "$REPO" "$GIT_PROMPT_PATH" --depth=1
fi