From 4eb376b40e50ae8fcf71f90a7c488f85f3e757c9 Mon Sep 17 00:00:00 2001 From: Eric Ernst Date: Fri, 20 Sep 2019 16:05:30 -0700 Subject: [PATCH] artifact-list: provide script to get items to build artifact-list.sh is created so a builder can quickly determine which artifacts may be built within this repository. I user may get this list, which indicates exactly which functions are available within ./release/kata-deploy-binaries.sh for building. Signed-off-by: Eric Ernst --- artifact-list.sh | 23 +++++++++++++++++++++++ release/kata-deploy-binaries.sh | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100755 artifact-list.sh diff --git a/artifact-list.sh b/artifact-list.sh new file mode 100755 index 0000000000..87669c8e88 --- /dev/null +++ b/artifact-list.sh @@ -0,0 +1,23 @@ +#!/bin/bash +# +# Copyright (c) 2019 Intel Corporation +# +# SPDX-License-Identifier: Apache-2.0 +# + +set -o errexit +set -o pipefail +set -o nounset + +supported_artifacts=( + "install_docker_config_script" + "install_experimental_kernel" + "install_firecracker" + "install_image" + "install_kata_components" + "install_kernel" + "install_qemu" + "install_qemu_virtiofsd" +) + +for c in ${supported_artifacts[@]}; do echo $c; done diff --git a/release/kata-deploy-binaries.sh b/release/kata-deploy-binaries.sh index 1ba0259c6b..44ea30f0bc 100755 --- a/release/kata-deploy-binaries.sh +++ b/release/kata-deploy-binaries.sh @@ -286,4 +286,6 @@ main() { fi } -[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@" +if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then + main $@ +fi