File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
src/lib/core/docker/container-tools/project_entrypoints Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,13 @@ Vagrant.configure("2") do |config|
203203
204204 if [[ "$(uname)" == "Darwin" ]]; then
205205 NON_ROOT_HOME=/Users/vagrant
206- source ${NON_ROOT_HOME:?err}/.zshrc | exit 1
206+
207+ if [[ -f "${NON_ROOT_HOME:?err}/.zshrc" ]]; then
208+ source "${NON_ROOT_HOME:?err}/.zshrc" || exit 1
209+ else
210+ echo -e "Unable to find ${NON_ROOT_HOME}/.zshrc indicating that the previous provisioning stage might have fail!" 1>&2
211+ exit 1
212+ fi
207213 elif [[ "$(uname)" == "Linux" ]]; then
208214 NON_ROOT_HOME=/home/vagrant
209215
Original file line number Diff line number Diff line change @@ -185,8 +185,14 @@ function dna::install_dockerized_norlab_project_on_host() {
185185 dna_bin_dir=" ${dna_install_dir} /src/bin"
186186 dna_entrypoint=" ${dna_bin_dir} /dna"
187187
188- # Source minimum required library for install purposes
188+ # Source minimum required library for install purposes (phase 1)
189189 source " ${dna_install_dir} /load_repo_main_dotenv.bash"
190+
191+ # This is required in our case since DNA has multiple git submodule and it might be confusing to
192+ # user how to proceed with install.
193+ git config --global --add safe.directory " ${dna_install_dir} "
194+
195+ # Source minimum required library for install purposes (phase 2)
190196 source " ${dna_install_dir} /utilities/norlab-shell-script-tools/import_norlab_shell_script_tools_lib.bash"
191197 source " ${dna_install_dir} /src/lib/core/utils/import_dna_lib.bash"
192198 source " ${dna_install_dir} /src/lib/core/utils/setup_host_dna_requirements.bash"
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ if [[ ${DN_ENTRYPOINT_TRACE_EXECUTION} == true ]]; then
1616fi
1717
1818if [[ -n " ${ROS_DISTRO} " ]]; then
19+ source /dockerized-norlab/dockerized-norlab-images/container-tools/dn_bashrc_non_interactive.bash
20+
1921 # Should be executed before sourcing ROS2
2022 if ! ros2 pkg list | grep -q " ${RMW_IMPLEMENTATION:- rmw_fastrtps_cpp} " ; then
2123 echo " Warning: ${RMW_IMPLEMENTATION} not found, falling back to default RMW"
You can’t perform that action at this time.
0 commit comments