docs: update README

This commit is contained in:
debugtalk
2022-04-08 18:09:51 +08:00
parent b008822c56
commit 3e404da4b4
6 changed files with 218 additions and 45 deletions

View File

@@ -23,7 +23,7 @@ export -f echoError
function get_latest_version() {
# <title>Release v0.4.0 · httprunner/hrp · GitHub</title>
curl -sL https://github.com/httprunner/hrp/releases/latest | grep '<title>Release' | cut -d" " -f4
curl -sL https://github.com/httprunner/httprunner/releases/latest | grep '<title>Release' | cut -d" " -f4
}
function get_os() {
@@ -75,7 +75,7 @@ function main() {
# aliyun OSS url is invalid, try to download from github
version=$(get_latest_version)
pkg="hrp-$version-$os-$arch$pkg_suffix"
url="https://github.com/httprunner/hrp/releases/download/$version/$pkg"
url="https://github.com/httprunner/httprunner/releases/download/$version/$pkg"
fi
echo "Latest version: $version"