From fa54989deecf6fd73c0868d907d615af8317cfb7 Mon Sep 17 00:00:00 2001 From: juvdiaz Date: Mon, 29 Jun 2026 23:43:23 -0600 Subject: [PATCH] Fix worker count awk portability --- jeannie | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jeannie b/jeannie index bc14f8b..2dfff26 100755 --- a/jeannie +++ b/jeannie @@ -4444,12 +4444,12 @@ pimox_worker_count_default() { if [[ -s "${spec_file}" ]]; then count="$(awk -F'\t' -v key_prefix="${worker_key_prefix}" -v node_prefix="${worker_node_prefix}-" ' $1 ~ "^" key_prefix "[0-9]+$" { - index = substr($1, length(key_prefix) + 1) + 0 - if (index > max) max = index + worker_index = substr($1, length(key_prefix) + 1) + 0 + if (worker_index > max) max = worker_index } $4 ~ "^" node_prefix "[0-9]+$" { - index = substr($4, length(node_prefix) + 1) + 0 - if (index > max) max = index + worker_index = substr($4, length(node_prefix) + 1) + 0 + if (worker_index > max) max = worker_index } END { print max + 0 } ' "${spec_file}")"