Skip to content

Commit

Permalink
fix(ansible): disable artifact download prompt in with -y flag
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Panferov <[email protected]>
  • Loading branch information
lexavtanke committed Nov 29, 2023
1 parent c9c4546 commit b4c64de
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 b4c64de

Please sign in to comment.