Skip to content

Commit

Permalink
docs: update installation and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Dec 29, 2023
1 parent bf69ff1 commit fb6fddb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@

[![CI](https://github.com/spencerwooo/mihoro/actions/workflows/ci.yml/badge.svg)](https://github.com/spencerwooo/mihoro/actions/workflows/ci.yml)
[![Release](https://github.com/spencerwooo/mihoro/actions/workflows/release.yml/badge.svg)](https://github.com/spencerwooo/mihoro/actions/workflows/release.yml)
<!-- [![GitHub release (latest by date)](https://img.shields.io/github/v/release/spencerwooo/mihoro)](https://github.com/spencerwooo/mihoro/releases/latest) -->
[![GitHub release (latest by date)](https://img.shields.io/github/v/release/spencerwooo/mihoro)](https://github.com/spencerwooo/mihoro/releases/latest)

Mihomo CLI client on Linux.

## Install

```shell
curl -fsSL https://mirror.ghproxy.com/https://raw.githubusercontent.com/spencerwooo/mihoro/main/install.sh | sh -
```

## License

[MIT](LICENSE)
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ download_mihoro() {

local _package="mihoro.$_ext"
case "$_dld" in
curl) _releases="$(curl -sLo "$_package" "$_package_url")" || err "curl: failed to download $_package_url" ;;
wget) _releases="$(wget -qO "$_package" "$_package_url")" || err "wget: failed to download $_package_url" ;;
curl) _releases="$(curl -sLo "$_package" "https://mirror.ghproxy.com/$_package_url")" || err "curl: failed to download https://mirror.ghproxy.com/$_package_url" ;;
wget) _releases="$(wget -qO "$_package" "https://mirror.ghproxy.com/$_package_url")" || err "wget: failed to download https://mirror.ghproxy.com/$_package_url" ;;
esac

RETVAL="$_package"
Expand Down

0 comments on commit fb6fddb

Please sign in to comment.