Skip to content

Commit

Permalink
add vcs pull to update
Browse files Browse the repository at this point in the history
Signed-off-by: Oguz Ozturk <[email protected]>
  • Loading branch information
oguzkaganozt committed Jun 14, 2024
1 parent cf8405e commit 895bd5c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,14 @@ load_env() {
# Clone repositories
clone_repositories() {
cd "$WORKSPACE_ROOT"
mkdir -p docker/src
vcs import docker/src <autoware.repos
if [ ! -d "docker/src" ]; then
mkdir -p docker/src
vcs import docker/src < autoware.repos
else
echo "Source directory already exists. Updating repositories..."
vcs import docker/src < autoware.repos
vcs pull docker/src
fi
}

# Build images
Expand Down

0 comments on commit 895bd5c

Please sign in to comment.