Skip to content

Commit

Permalink
update readme and script dir
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 29, 2022
1 parent 7d7c6e4 commit dd4b748
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Kite is a tool for help development.
> GitHub https://github.com/inhere/kite
> kite is build on the [inhere/php-console](https://github.com/inhere/php-console)
![](resource/images/kite-commands.png)
![kite-commands](resource/images/kite-commands.png)

## Install

Expand All @@ -23,10 +23,10 @@ Kite is a tool for help development.

### Install by script

> file: [install.sh](./install.sh)
> file: [bin/install.sh](bin/install.sh)
```bash
curl https://raw.githubusercontent.com/inhere/kite/master/install.sh | bash
curl https://raw.githubusercontent.com/inhere/kite/master/bin/install.sh | bash
```

### Manual clone
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ PHP编写的,方便本地开发和使用的个人CLI工具应用。
**脚本安装(推荐)**

> file: [install.sh](./install.sh)
> file: [bin/install.sh](bin/install.sh)
```bash
curl https://raw.githubusercontent.com/inhere/kite/master/install.sh | bash
curl https://raw.githubusercontent.com/inhere/kite/master/bin/install.sh | bash
```

**手动安装(推荐)**
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions install.sh → bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ set -ex

INSTALL_DIR=~
CLONE_DIR=.kite
USER_CONF_DIR=~/.kite

# goto user home dir.
cd $INSTALL_DIR || exit

# download tool by git clone
git clone https://github.com/inhere/kite $CLONE_DIR

# ensure use config dir is create
mkdir -f "$USER_CONF_DIR"

# shellcheck disable=SC2164
cd $CLONE_DIR
# install dep packages
Expand All @@ -29,3 +26,6 @@ chmod a+x bin/kite
# link bin file to ENV path
ln -s "$PWD"/bin/htu /usr/local/bin/htu
ln -s "$PWD"/bin/kite /usr/local/bin/kite

echo "- Install Successful"
kite --help

0 comments on commit dd4b748

Please sign in to comment.