From fea2e22e43cb0177dedb5c640edeba7951f71a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=C3=A1n=20C=20McCord?= Date: Mon, 15 Jan 2024 15:35:05 -0500 Subject: [PATCH] sign.sh: handle variable width signature indices --- src/sign.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sign.sh b/src/sign.sh index 3151a7d..fd0e7cc 100644 --- a/src/sign.sh +++ b/src/sign.sh @@ -15,7 +15,7 @@ mkdir -p ${DIR} [ -f ${DIR}/signature-1 ] \ && LASTSIGNUM=$( \ find ${DIR} -type f -printf "%f\n" \ - | sort \ + | sort -t- -k2 -n \ | tail -n1 \ | sed 's/signature-//' \ ) \