I’ve already opened a github issue but I prefer adding the info also here.
The script tcb-env-setup.sh that I download with
wget https://raw.githubusercontent.com/toradex/tcb-env-setup/master/tcb-env-setup.sh
defines an alias torizoncore-builder in the following way
alias torizoncore-builder='docker run --rm '"$interactive_flags"' '"$volumes"'-v "$(pwd)":/workdir -v '"$storage"':/storage -v /var/run/docker.sock:/var/run/docker.sock'"$network"'$(tcb_dynamic_params) '"$*"' torizon/torizoncore-builder:'"$chosen_tag"
The problem is that if I call this bash file from an Azure DevOps pipeline, the shell is not interactive and so aliases are not expanded.
The following lines must be added at the beginning of the script (after the first line)
# we need this to expand the aliases even in case of not interactive shell (CI/CD)
shopt -s expand_aliases
Otherwise, shopt -s expand_aliases must be called by the pipeline before sourcing.
If this is the expected way, please add this info to the documentation, please. If it’s already added and I missed it, sorry.