sign.sh: handle variable width signature indices
This commit is contained in:
parent
f0038c8f9c
commit
fea2e22e43
|
@ -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-//' \
|
||||
) \
|
||||
|
|
Reference in New Issue