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

@@ -159,7 +159,7 @@ install_pkg() {
download() {
case $1 in
core)
[[ ! $is_core_ver ]] && is_core_ver=$(_wget -qO- "https://api.github.com/repos/${is_core_repo}/releases/latest?v=$RANDOM" | grep tag_name | egrep -o 'v([0-9.]+)')
[[ ! $is_core_ver ]] && is_core_ver=$(_wget -qO- "https://api.github.com/repos/${is_core_repo}/releases/latest?v=$RANDOM" | grep tag_name | grep -E -o 'v([0-9.]+)')
[[ $is_core_ver ]] && link="https://github.com/${is_core_repo}/releases/download/${is_core_ver}/${is_core}-${is_core_ver:1}-linux-${is_arch}.tar.gz"
name=$is_core_name
tmpfile=$tmpcore