flatcar_workon: Simplify condition

Co-authored-by: James Le Cuirot <jlecuirot@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2024-07-02 12:51:32 +02:00 committed by GitHub
parent eba755d96b
commit d29ffa08a7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ set -euo pipefail
# If both board and host are specified, just use host, because board
# does not have to be specified and may come from default, in which
# case there's no way to override.
if [[ -n ${FLAGS_board} ]] && [[ ${FLAGS_host} = "${FLAGS_TRUE}" ]]; then
if [[ -n ${FLAGS_board} && ${FLAGS_host} = "${FLAGS_TRUE}" ]]; then
unset FLAGS_board # kill board
fi