From 53a6e91218dba48620770f61c3936c3da97ffad2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 26 Jul 2026 01:20:41 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- inc/post-install.inc | 2 +- tests/test-post-install.sh | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index 5420f39..3fc68e5 100755 --- a/defaults.inc +++ b/defaults.inc @@ -3,7 +3,7 @@ action="${1:-}" FOLDER='/opt/idssys/ta-proxmenu' -VERS='2026.7.26-1' +VERS='2026.7.26-2' noupdate=' ' diff --git a/inc/post-install.inc b/inc/post-install.inc index c2faa10..31ec1f5 100644 --- a/inc/post-install.inc +++ b/inc/post-install.inc @@ -300,7 +300,7 @@ TAPM_POST_PRECHECK() { fi pve_major="$( pveversion 2>/dev/null | - sed -n 's/.*pve-manager\\/\\([0-9][0-9]*\\).*/\\1/p' | + sed -n 's/.*pve-manager\/\([0-9][0-9]*\).*/\1/p' | head -1 )" if [[ "$pve_major" != '9' ]]; then diff --git a/tests/test-post-install.sh b/tests/test-post-install.sh index 331a903..58f8cff 100644 --- a/tests/test-post-install.sh +++ b/tests/test-post-install.sh @@ -5,6 +5,11 @@ TEST_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" source "${TEST_ROOT}/tests/testlib.sh" source "${TEST_ROOT}/inc/post-install.inc" +assert_equal 9 \ + "$(printf '%s\n' 'pve-manager/9.0.3/0255bb4e9600f70c (running kernel: 6.14.8-2-pve)' | + sed -n 's/.*pve-manager\/\([0-9][0-9]*\).*/\1/p')" \ + "Proxmox major version extraction" + POST_TEST_ROOT="$(mktemp -d /tmp/tapm-post-install.XXXXXX)" TAPM_HOST_ROOT="$POST_TEST_ROOT"