diff options
| author | typebrook <typebrook@gmail.com> | 2020-03-02 21:53:02 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-03-02 21:53:02 +0800 |
| commit | 39f98691082ea55cae182d77c7767616bed5f679 (patch) | |
| tree | fdaa623d503b21cb08fa6f7a5880e8067ea69df4 | |
| parent | ac004e18c73b2de2877789921cdf212f75c861df (diff) | |
update
| -rw-r--r-- | README.md | 4 | ||||
| -rw-r--r-- | tools/install.sh | 2 |
2 files changed, 3 insertions, 3 deletions
| @@ -1,9 +1,9 @@ | |||
| 1 | ## Getting Started | 1 | ## Getting Started |
| 2 | **via curl** | 2 | **via curl** |
| 3 | ``` | 3 | ``` |
| 4 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/typebrook/settings/master/tools/install.sh)" | 4 | sh -c "$(curl -fsSL https://raw.githubusercontent.com/typebrook/settings/dev/tools/install.sh)" |
| 5 | ``` | 5 | ``` |
| 6 | **via wget** | 6 | **via wget** |
| 7 | ``` | 7 | ``` |
| 8 | sh -c "$(wget -O- https://raw.githubusercontent.com/typebrook/settings/master/tools/install.sh)" | 8 | sh -c "$(wget -O- https://raw.githubusercontent.com/typebrook/settings/dev/tools/install.sh)" |
| 9 | ``` | 9 | ``` |
diff --git a/tools/install.sh b/tools/install.sh index 9f51f8c..1969c9a 100644 --- a/tools/install.sh +++ b/tools/install.sh | |||
| @@ -6,7 +6,7 @@ set -e | |||
| 6 | SETTING_DIR=${SETTING_DIR:-~/settings} | 6 | SETTING_DIR=${SETTING_DIR:-~/settings} |
| 7 | REPO=${REPO:-typebrook/settings} | 7 | REPO=${REPO:-typebrook/settings} |
| 8 | REMOTE=${REMOTE:-https://github.com/${REPO}.git} | 8 | REMOTE=${REMOTE:-https://github.com/${REPO}.git} |
| 9 | BRANCH=${BRANCH:-master} | 9 | BRANCH=${BRANCH:-dev} |
| 10 | 10 | ||
| 11 | git clone --depth=1 --branch "$BRANCH" "$REMOTE" "$SETTING_DIR" || { | 11 | git clone --depth=1 --branch "$BRANCH" "$REMOTE" "$SETTING_DIR" || { |
| 12 | error "git clone of settings repo failed" | 12 | error "git clone of settings repo failed" |