mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-16 23:17:42 +00:00
osbuilder: fix log message that is not error but seems like an error
Only show checkout failed message if AGENT_VERSION is set and the checkout is failed. Fixes: #1989 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
parent
f26837a0f1
commit
45fd58d11c
@ -584,7 +584,9 @@ EOT
|
||||
|
||||
info "Build agent"
|
||||
pushd "${agent_dir}"
|
||||
[ -n "${AGENT_VERSION}" ] && git checkout "${AGENT_VERSION}" && OK "git checkout successful" || info "checkout failed!"
|
||||
if [ -n "${AGENT_VERSION}" ]; then
|
||||
git checkout "${AGENT_VERSION}" && OK "git checkout successful" || die "checkout agent ${AGENT_VERSION} failed!"
|
||||
fi
|
||||
make clean
|
||||
make LIBC=${LIBC} INIT=${AGENT_INIT}
|
||||
make install DESTDIR="${ROOTFS_DIR}" LIBC=${LIBC} INIT=${AGENT_INIT} SECCOMP=${SECCOMP}
|
||||
|
Loading…
Reference in New Issue
Block a user