-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(firmware): Generalize firmware-check script for all devices, ba…
…ckfill revisionIds into releases
- Loading branch information
1 parent
3d55a3e
commit bc2706f
Showing
5 changed files
with
48 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
# This is basically copy-paste of | ||
# https://github.com/trezor/trezor-suite/blob/develop/packages/connect-common/scripts/check-all-firmware-revisions.sh | ||
# | ||
# Small adjustments are made because here we check releases.json here in data/firmware, not those in trezor-suite/connect-common. | ||
# Please keep them in sync if possible. | ||
# | ||
|
||
PARENT_PATH=$( cd "$(dirname "${BASH_SOURCE[0]}")" || exit ; pwd -P ) | ||
|
||
cd "$PARENT_PATH/../firmware" || exit | ||
|
||
EXCLUDED_DIR="translations" | ||
|
||
for dir in */ ; do | ||
DEVICE=${dir%/} | ||
if [[ $EXCLUDED_DIR == "$DEVICE" ]]; then continue; fi | ||
if [ -d "$dir" ]; then | ||
if ! "$PARENT_PATH/check-firmware-revisions.sh" "$DEVICE" ; then | ||
exit 1 | ||
fi; | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters