Improve git-prompt installation script
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user