Skip to content

Commit

Permalink
fix(ansible): disable artifact download prompt in with -y flag (autow…
Browse files Browse the repository at this point in the history
…arefoundation#4026)

* fix(ansible): disable artifact download prompt in with -y flag

Signed-off-by: Alexey Panferov <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: Alexey Panferov <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
lexavtanke and pre-commit-ci[bot] authored Nov 29, 2023
1 parent c9c4546 commit 894fd0b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions setup-dev-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ while [ "$1" != "" ]; do
option_data_dir="$2"
shift
;;
--download-artifacts)
# Set download artifacts option
option_download_artifacts=true
;;
*)
args+=("$1")
;;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 894fd0b

Please sign in to comment.