Skip to content

Commit

Permalink
udpate readme
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Jan 20, 2014
1 parent e4ee433 commit 6b7181b
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,42 +8,55 @@ useful-shells
下载使用
========================

### 直接clone工程
### 下载整个工程的脚本

简单方便,不过要安装有`git`
#### 直接clone工程

使用简单、方便更新,不过要安装有`git`

```bash
git clone git://github.com/oldratlee/useful-shells.git
# 使用Release分支的内容
git checkout release

# 更新
# 更新脚本
git pull
```

### 下载单个文件

[`show-busy-java-threads.sh`](https://raw.github.com/oldratlee/useful-shells/release/show-busy-java-threads.sh)为例:
包含2个分支:

```bash
wget --no-check-certificate https://raw.github.com/oldratlee/useful-shells/release/show-busy-java-threads.sh
chmod +x show-busy-java-threads.sh
```
- `master`:开发分支
- `release`:发布分支,功能稳定的脚本

### 打包下载
#### 打包下载

下载文件[release.zip](https://github.com/oldratlee/useful-shells/archive/release.zip)

```bash
wget --no-check-certificate https://github.com/oldratlee/useful-shells/archive/release.zip

unzip release.zip
```

### `curl`直接用`bash`运行
### 下载和运行单个文件

[`show-busy-java-threads.sh`](https://raw.github.com/oldratlee/useful-shells/release/show-busy-java-threads.sh)为例。

#### `curl`文件直接用`bash`运行

```bash
curl -sLk 'https://raw.github.com/oldratlee/useful-shells/release/show-busy-java-threads.sh' | bash
```

#### 下载单个文件

```bash
wget --no-check-certificate https://raw.github.com/oldratlee/useful-shells/release/show-busy-java-threads.sh
chmod +x show-busy-java-threads.sh

./show-busy-java-threads.sh
```

show-busy-java-threads.sh
==========================

Expand Down

0 comments on commit 6b7181b

Please sign in to comment.