fix(release): use Bash 3.2-safe artifact verifier (#1730)
This commit is contained in:
@@ -62,10 +62,9 @@ updater_suffix_for_platform() {
|
||||
}
|
||||
|
||||
for platform in "${REQUIRED_PLATFORMS[@]}"; do
|
||||
artifacts=("$ASSETS_DIR"/kandev-desktop-"$platform"-*)
|
||||
found=0
|
||||
|
||||
for artifact in "${artifacts[@]}"; do
|
||||
for artifact in "$ASSETS_DIR"/kandev-desktop-"$platform"-*; do
|
||||
if [[ "$artifact" == *.sha256 ]]; then
|
||||
continue
|
||||
fi
|
||||
@@ -87,15 +86,13 @@ for platform in "${REQUIRED_PLATFORMS[@]}"; do
|
||||
fi
|
||||
|
||||
updater_suffix="$(updater_suffix_for_platform "$platform")"
|
||||
updater_bundles=("$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix)
|
||||
updater_signatures=("$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix.sig)
|
||||
for updater_bundle in "${updater_bundles[@]}"; do
|
||||
for updater_bundle in "$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix; do
|
||||
if [ ! -f "$updater_bundle.sig" ]; then
|
||||
echo "Missing updater signature: $updater_bundle.sig" >&2
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
for updater_signature in "${updater_signatures[@]}"; do
|
||||
for updater_signature in "$ASSETS_DIR"/kandev-desktop-"$platform"-$updater_suffix.sig; do
|
||||
updater_bundle="${updater_signature%.sig}"
|
||||
if [ ! -f "$updater_bundle" ]; then
|
||||
echo "Missing updater bundle for signature: $updater_signature" >&2
|
||||
|
||||
Reference in New Issue
Block a user