From 7a24f75c6ac38dc3230cf5d6e7f681e93c87eaa4 Mon Sep 17 00:00:00 2001 From: Harish Kumar B <58444815+harishkumarbalaji@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:59:09 +0530 Subject: [PATCH] Fix configured search dirs variable to prepend the absolute paths There is a typo in checking if the docker search path is absolute or not. Corrected the bash if condition from "${CONFIG_DOCKER_SEARCH_DIRS[i]}" != '/*'* to "${CONFIG_DOCKER_SEARCH_DIRS[i]}" != '/'* Signed-off-by: Harish Kumar B <58444815+harishkumarbalaji@users.noreply.github.com> --- scripts/build_base_image.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_base_image.sh b/scripts/build_base_image.sh index b7d933a8..82c29068 100755 --- a/scripts/build_base_image.sh +++ b/scripts/build_base_image.sh @@ -29,7 +29,7 @@ if [[ -f "${ROOT}/.isaac_ros_common-config" ]]; then # Prepend configured docker search dirs if [ ${#CONFIG_DOCKER_SEARCH_DIRS[@]} -gt 0 ]; then for (( i=${#CONFIG_DOCKER_SEARCH_DIRS[@]}-1 ; i>=0 ; i-- )); do - if [[ "${CONFIG_DOCKER_SEARCH_DIRS[i]}" != '/*'* ]]; then + if [[ "${CONFIG_DOCKER_SEARCH_DIRS[i]}" != '/'* ]]; then CONFIG_DOCKER_SEARCH_DIRS[$i]="${ROOT}/${CONFIG_DOCKER_SEARCH_DIRS[i]}" fi done