From 58a8a0cfc6de9d9b0309292d1c335e4f4a1cca0d Mon Sep 17 00:00:00 2001 From: ophub <68696949+ophub@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:06:07 +0800 Subject: [PATCH] Adjust version check --- luci-app-amlogic/Makefile | 8 ++++---- .../root/usr/share/amlogic/amlogic_check_plugin.sh | 2 +- onekey-install.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/luci-app-amlogic/Makefile b/luci-app-amlogic/Makefile index bcf2d806..584bf366 100644 --- a/luci-app-amlogic/Makefile +++ b/luci-app-amlogic/Makefile @@ -1,4 +1,4 @@ -#=================================================================================================== +#===================================================================================================== # This file is licensed under the terms of the GNU General Public # License version 2. This program is licensed "as is" without any # warranty of any kind, whether express or implied. @@ -6,17 +6,17 @@ # This file is a part of the luci-app-amlogic plugin # https://github.com/ophub/luci-app-amlogic # -# Description: Support install/update/backup/restore/snapshot etc for OpenWrt on amlogic s9xxx boxs +# Description: Supports install/update/backup/restore/snapshot operations using OpenWrt on many boxes # Copyright (C) 2021- https://github.com/unifreq/openwrt_packit # Copyright (C) 2021- https://github.com/ophub/luci-app-amlogic # # Command: curl -fsSL git.io/luci-app-amlogic | bash -#=================================================================================================== +#===================================================================================================== include $(TOPDIR)/rules.mk PKG_NAME:=luci-app-amlogic -PKG_VERSION:=3.1.245 +PKG_VERSION:=3.1.246 PKG_RELEASE:=1 PKG_LICENSE:=GPL-2.0 License diff --git a/luci-app-amlogic/root/usr/share/amlogic/amlogic_check_plugin.sh b/luci-app-amlogic/root/usr/share/amlogic/amlogic_check_plugin.sh index 475446d4..7df6cc63 100755 --- a/luci-app-amlogic/root/usr/share/amlogic/amlogic_check_plugin.sh +++ b/luci-app-amlogic/root/usr/share/amlogic/amlogic_check_plugin.sh @@ -79,7 +79,7 @@ tolog "02. Start querying plugin version..." latest_version="$( curl -fsSL -m 10 \ https://github.com/ophub/luci-app-amlogic/releases | - grep -oE 'expanded_assets/[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?' | sed 's|expanded_assets/||' | + grep -oE 'expanded_assets/[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?' | sed 's|expanded_assets/||g' | sort -urV | head -n 1 )" if [[ -z "${latest_version}" ]]; then diff --git a/onekey-install.sh b/onekey-install.sh index ea22959f..4cbba66b 100755 --- a/onekey-install.sh +++ b/onekey-install.sh @@ -40,7 +40,7 @@ query_version() { latest_version="$( curl -fsSL -m 10 \ https://github.com/ophub/luci-app-amlogic/releases | - grep -oE 'expanded_assets/[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?' | sed 's|expanded_assets/||' | + grep -oE 'expanded_assets/[0-9]+.[0-9]+.[0-9]+(-[0-9]+)?' | sed 's|expanded_assets/||g' | sort -urV | head -n 1 )" if [[ -z "${latest_version}" ]]; then