From 6c8df7fc3d203644cfeb57a33834b57449d28558 Mon Sep 17 00:00:00 2001 From: Archana Shinde Date: Wed, 16 Oct 2019 11:00:21 -0700 Subject: [PATCH] release: Call kata-deploy-binaries.sh main only if it not sourced Allow script to be sourced. Signed-off-by: Archana Shinde --- release/kata-deploy-binaries.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/kata-deploy-binaries.sh b/release/kata-deploy-binaries.sh index 21a5d696d5..a0772d796c 100755 --- a/release/kata-deploy-binaries.sh +++ b/release/kata-deploy-binaries.sh @@ -284,4 +284,4 @@ main() { fi } -main $@ +[[ "${BASH_SOURCE[0]}" == "${0}" ]] && main "$@"