aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/install.sh10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 1969c9a..8acbbdd 100644
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -8,10 +8,12 @@ REPO=${REPO:-typebrook/settings}
8REMOTE=${REMOTE:-https://github.com/${REPO}.git} 8REMOTE=${REMOTE:-https://github.com/${REPO}.git}
9BRANCH=${BRANCH:-dev} 9BRANCH=${BRANCH:-dev}
10 10
11git clone --depth=1 --branch "$BRANCH" "$REMOTE" "$SETTING_DIR" || { 11if [[ -d $SETTING_DIR ]]; then
12 error "git clone of settings repo failed" 12 git clone --depth=1 --branch "$BRANCH" "$REMOTE" "$SETTING_DIR" || {
13 exit 1 13 error "git clone of settings repo failed"
14} 14 exit 1
15 }
16fi
15 17
16sed "/^# $REPO/, /^$/ d" 18sed "/^# $REPO/, /^$/ d"
17cat <<EOF 19cat <<EOF