commitpkg: Split signature check into own loop
This allows us to extend the uploads array without having to duplicate the current signing logic. This doesn't change anything as we still exit on any failed packages. Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
parent
ec16d6e4bd
commit
95d06e0f60
|
@ -147,7 +147,10 @@ for _arch in "${arch[@]}"; do
|
|||
continue 2
|
||||
fi
|
||||
uploads+=("$pkgfile")
|
||||
done
|
||||
done
|
||||
|
||||
for pkgfile in "${uploads[@]}"; do
|
||||
sigfile="${pkgfile}.sig"
|
||||
if [[ ! -f $sigfile ]]; then
|
||||
msg "Signing package %s..." "${pkgfile}"
|
||||
|
@ -160,7 +163,6 @@ for _arch in "${arch[@]}"; do
|
|||
die "Signature %s is incorrect!" "$sigfile"
|
||||
fi
|
||||
uploads+=("$sigfile")
|
||||
done
|
||||
done
|
||||
|
||||
for _arch in "${arch[@]}"; do
|
||||
|
|
Loading…
Reference in New Issue