From 894fd0b0dc0e77ab0dbfc72f6e42c3971542ab97 Mon Sep 17 00:00:00 2001 From: Alexey Panferov <37497658+lexavtanke@users.noreply.github.com> Date: Thu, 30 Nov 2023 02:01:15 +0300 Subject: [PATCH] fix(ansible): disable artifact download prompt in with -y flag (#4026) * fix(ansible): disable artifact download prompt in with -y flag Signed-off-by: Alexey Panferov * style(pre-commit): autofix --------- Signed-off-by: Alexey Panferov Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- setup-dev-env.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/setup-dev-env.sh b/setup-dev-env.sh index 14f215ef6f2..71338f7f58d 100755 --- a/setup-dev-env.sh +++ b/setup-dev-env.sh @@ -38,6 +38,10 @@ while [ "$1" != "" ]; do option_data_dir="$2" shift ;; + --download-artifacts) + # Set download artifacts option + option_download_artifacts=true + ;; *) args+=("$1") ;; @@ -97,6 +101,12 @@ else ansible_args+=("--extra-vars" "tensorrt_install_devel=true") fi +# Check downloading artifacts +if [ "$option_yes" = "true" ] || [ "$option_download_artifacts" = "true" ]; then + echo -e "\e[36mArtifacts will be downloaded to $option_data_dir\e[m" + ansible_args+=("--extra-vars" "prompt_download_artifacts=y") +fi + ansible_args+=("--extra-vars" "data_dir=$option_data_dir") # Load env