Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 7 additions & 11 deletions scripts/check-all-firmware-revisions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,15 @@ cd "$PARENT_PATH/../firmware" || exit

EXCLUDED_DIR="translations"

IS_LEGACY="false"

for dir in */ ; do
DEVICE=${dir%/}
# TODO: we excude t3w1 until we have releases on it.
if [[ $EXCLUDED_DIR == "$DEVICE" || $DEVICE == "t3w1" ]]; then continue; fi
is_legacy_for_device="$IS_LEGACY"
if [[ ! -d "$dir" ]]; then continue; fi
if [[ $EXCLUDED_DIR == "$DEVICE" ]]; then continue; fi
is_legacy_only="false"
if [[ "$DEVICE" == "1" || "$DEVICE" == "2" ]]; then
is_legacy_for_device="true"
fi
if [ -d "$dir" ]; then
if ! "$PARENT_PATH/check-firmware-revisions.sh" "$DEVICE" "$is_legacy_for_device" ; then
exit 1
fi;
is_legacy_only="true"
fi
if ! "$PARENT_PATH/check-firmware-revisions.sh" "$DEVICE" "$is_legacy_only" ; then
exit 1
fi;
done
Loading