sign.sh: handle variable width signature indices

This commit is contained in:
Seán C McCord 2024-01-15 15:35:05 -05:00
parent f0038c8f9c
commit fea2e22e43
No known key found for this signature in database
GPG Key ID: FC678714ACA347CB
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ mkdir -p ${DIR}
[ -f ${DIR}/signature-1 ] \ [ -f ${DIR}/signature-1 ] \
&& LASTSIGNUM=$( \ && LASTSIGNUM=$( \
find ${DIR} -type f -printf "%f\n" \ find ${DIR} -type f -printf "%f\n" \
| sort \ | sort -t- -k2 -n \
| tail -n1 \ | tail -n1 \
| sed 's/signature-//' \ | sed 's/signature-//' \
) \ ) \