Skip to content

Commit

Permalink
mod:xiaoya容器名获取设置优先级
Browse files Browse the repository at this point in the history
优先获取原版小雅,然后是tvbox,最后老G版本。
  • Loading branch information
dezhishen authored Dec 9, 2024
1 parent 608b093 commit 887b3d2
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion xiaoyahelper/aliyun_clear.sh
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,21 @@ get_docker_info() {
}

get_Xiaoya() {
get_docker_info | grep "xiaoyaliu/alist\|haroldli/xiaoya-tvbox\|ailg/alist" | awk '{print $1}'
o_xiaoya_name=$(get_docker_info | grep "xiaoyaliu/alist" | awk '{print $1}')
if [ "$o_xiaoya_name"x != x ]; then
echo ${o_xiaoya_name}
return
fi
t_xiaoya_name=$(get_docker_info | grep "haroldli/xiaoya-tvbox" | awk '{print $1}')
if [ "$t_xiaoya_name"x != x ]; then
echo ${t_xiaoya_name}
return
fi
g_xiaoya_name=$(get_docker_info | grep "ailg/alist" | awk '{print $1}')
if [ "$g_xiaoya_name"x != x ]; then
echo ${g_xiaoya_name}
return
fi
}

# 签到是抄小雅的
Expand Down

0 comments on commit 887b3d2

Please sign in to comment.