Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add board detection/fix a bug where octopus would be assumed always #28

Merged
merged 1 commit into from
Apr 10, 2023
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
3 changes: 2 additions & 1 deletion mush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ opposite_num() {
}
attempt_update(){
local builds=$(curl https://chromiumdash.appspot.com/cros/fetch_serving_builds?deviceCategory=Chrome%20OS)
local board=octopus
local release_board=$(lsbval CHROMEOS_RELEASE_BOARD)
local board=${release_board%%-*}
local hwid=$(jq "(.builds.$board[] | keys)[0]" <<<"$builds")
local hwid=${hwid:1:-1}
local latest_milestone=$(jq "(.builds.$board[].$hwid.pushRecoveries | keys) | .[length - 1]" <<<"$builds")
Expand Down