14 lines
283 B
Bash
Executable File
14 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -E -o errexit -o nounset -o pipefail
|
|
set -x
|
|
|
|
GIT_PROMPT_PATH=${GIT_PROMPT_PATH:-$LWS/opt/bash-git-prompt}
|
|
|
|
readonly REPO="https://github.com/magicmonty/bash-git-prompt.git"
|
|
|
|
if [[ ! -d "$GIT_PROMPT_PATH" ]]; then
|
|
git clone "$REPO" "$GIT_PROMPT_PATH" --depth=1
|
|
fi
|
|
|