mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Upgrade to (at least) Catalyst 4 before trying to run Catalyst
The changes to support Catalyst 4 are not backwards compatible and we need a seamless transition for builds in CI. Signed-off-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
parent
a783cc2303
commit
186f31168c
@ -3,6 +3,11 @@
|
|||||||
# Use of this source code is governed by a BSD-style license that can be
|
# Use of this source code is governed by a BSD-style license that can be
|
||||||
# found in the LICENSE file.
|
# found in the LICENSE file.
|
||||||
|
|
||||||
|
# Before doing anything, ensure we have at least Catalyst 4.
|
||||||
|
if catalyst --version | grep -q "Catalyst [0-3]\."; then
|
||||||
|
sudo emerge -v1 ">=dev-util/catalyst-4" || exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# common.sh should be sourced first
|
# common.sh should be sourced first
|
||||||
[[ -n "${DEFAULT_BUILD_ROOT}" ]] || exit 1
|
[[ -n "${DEFAULT_BUILD_ROOT}" ]] || exit 1
|
||||||
. "${SCRIPTS_DIR}/sdk_lib/sdk_util.sh" || exit 1
|
. "${SCRIPTS_DIR}/sdk_lib/sdk_util.sh" || exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user