Skip to content

Commit 8758874

Browse files
committed
scripts: dasharo-deploy: got to handle_fw_switching in case of Heads
Signed-off-by: Daniil Klimuk <[email protected]>
1 parent 574db4a commit 8758874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/dasharo-deploy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -986,10 +986,10 @@ update_workflow() {
986986
# TODO: Why do we separate Heads firmware-related code from other code? A
987987
# common way to handle this should be found.
988988
#
989-
# Versions should be compared in case we are not switching to Heads, because
990-
# heads version is not set at this moment, it is being set and compared in
991-
# handle_fw_switching:
992-
if [ "$CAN_SWITCH_TO_HEADS" = "true" ]; then
989+
# Versions should be compared only in case we are not switching to Heads,
990+
# because heads version is not set at this moment, it is being set and
991+
# compared in handle_fw_switching:
992+
if [ "$CAN_SWITCH_TO_HEADS" = "true" ] || [ "$DASHARO_FLAVOR" == "Dasharo (coreboot+heads)" ]; then
993993
handle_fw_switching $CAN_SWITCH_TO_HEADS
994994
else
995995
compare_versions $DASHARO_VERSION $UPDATE_VERSION

0 commit comments

Comments
 (0)