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 ] \
|
[ -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-//' \
|
||||||
) \
|
) \
|
||||||
|
|
Reference in New Issue