luci-app-mihomo: sync upstream

last commit: 02ecbaf51c
This commit is contained in:
gitea-action 2024-11-13 22:00:22 +08:00
parent a38c7dc1ae
commit 89c0471561

View File

@ -43,7 +43,11 @@ case "$action" in
version) version)
case "$1" in case "$1" in
app) app)
opkg list-installed | grep "luci-app-mihomo" | cut -d " " -f 3 if [ -x "/bin/opkg" ]; then
opkg list-installed "luci-app-mihomo" | cut -d " " -f 3
elif [ -x "/usr/bin/apk" ]; then
apk list -I "luci-app-mihomo" | cut -d ' ' -f 1 | cut -d '-' -f 4
fi
;; ;;
core) core)
mihomo -v | grep "Mihomo" | cut -d " " -f 3 mihomo -v | grep "Mihomo" | cut -d " " -f 3