mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
scripts: dev_cli: Simplify the build command exit path
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
0a1d6e1cb3
commit
c706ca1522
@ -191,16 +191,7 @@ cmd_build() {
|
|||||||
"$CTR_IMAGE" \
|
"$CTR_IMAGE" \
|
||||||
cargo build \
|
cargo build \
|
||||||
--target-dir "$CTR_CLH_CARGO_TARGET" \
|
--target-dir "$CTR_CLH_CARGO_TARGET" \
|
||||||
"${cargo_args[@]}"
|
"${cargo_args[@]}" && say "Binaries placed under $CLH_CARGO_TARGET/$build"
|
||||||
|
|
||||||
ret=$?
|
|
||||||
|
|
||||||
# If `cargo build` was successful, let's copy the binaries to a more
|
|
||||||
# accessible location.
|
|
||||||
[ $ret -eq 0 ] && {
|
|
||||||
cargo_bin_dir="$CLH_CARGO_TARGET/$build"
|
|
||||||
say "Binaries placed under $cargo_bin_dir"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd_clean() {
|
cmd_clean() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user