mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 23:21:17 +02:00
Merge pull request #394 from marineam/arm64
update_chroot: fail if --toolchain_boards= was given invalid names
This commit is contained in:
commit
83bfa8f4f6
@ -188,6 +188,8 @@ gcc_set_latest_profile "$(portageq envvar CHOST)"
|
||||
if [[ "${FLAGS_skip_toolchain_update}" -eq "${FLAGS_FALSE}" && \
|
||||
-n "${FLAGS_toolchain_boards}" ]]; then
|
||||
CROSS_CHOSTS=( $(get_board_chost ${FLAGS_toolchain_boards} | sort -u) )
|
||||
# double check get_board_chost actually returned results, pipefail isn't set.
|
||||
[[ -n "${CROSS_CHOSTS[*]}" ]] || exit 1
|
||||
|
||||
for cross_chost in "${CROSS_CHOSTS[@]}"; do
|
||||
info "Updating cross ${cross_chost} toolchain"
|
||||
|
Loading…
x
Reference in New Issue
Block a user