Skip to content

Commit

Permalink
Adjust version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Oct 1, 2024
1 parent 35c6292 commit 58a8a0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions luci-app-amlogic/Makefile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
#===================================================================================================
#=====================================================================================================
# 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.
#
# 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion onekey-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 58a8a0c

Please sign in to comment.