support set log level

This commit is contained in:
233boy
2025-06-25 11:02:59 +08:00
parent 1eace3153c
commit 23bf91d771
7 changed files with 63 additions and 23 deletions

View File

@@ -13,7 +13,7 @@ get_latest_version() {
url="https://api.github.com/repos/$is_caddy_repo/releases/latest?v=$RANDOM"
;;
esac
latest_ver=$(_wget -qO- $url | grep tag_name | egrep -o 'v([0-9.]+)')
latest_ver=$(_wget -qO- $url | grep tag_name | grep -E -o 'v([0-9.]+)')
[[ ! $latest_ver ]] && {
err "获取 ${name} 最新版本失败."
}