osbuilder: install-yq should not print on success

The caller might rely on the output to determine its failure.

Signed-off-by: Peng Tao <bergwolf@hyper.sh>
This commit is contained in:
Peng Tao 2020-08-31 18:40:25 +08:00
parent c624fa7469
commit 65970d3858

View File

@ -63,7 +63,6 @@ function install_yq() {
curl -o "${yq_path}" -LSsf "${yq_url}" curl -o "${yq_path}" -LSsf "${yq_url}"
[ $? -ne 0 ] && die "Download ${yq_url} failed" [ $? -ne 0 ] && die "Download ${yq_url} failed"
chmod +x "${yq_path}" chmod +x "${yq_path}"
echo "Installed $(${yq_path} --version)"
if ! command -v "${yq_path}" >/dev/null; then if ! command -v "${yq_path}" >/dev/null; then
die "Cannot not get ${yq_path} executable" die "Cannot not get ${yq_path} executable"