Skip to content

Commit

Permalink
fix vcs import dir
Browse files Browse the repository at this point in the history
Signed-off-by: Yutaka Kondo <[email protected]>
  • Loading branch information
youtalk committed Jun 20, 2024
1 parent ce3e912 commit 28cd6f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ capture/

# Node.js
node_modules/

# Docker build
docker/src
10 changes: 5 additions & 5 deletions docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,13 @@ load_env() {
# Clone repositories
clone_repositories() {
cd "$WORKSPACE_ROOT"
if [ ! -d "docker/src" ]; then
mkdir -p docker/src
vcs import docker/src <autoware.repos
if [ ! -d "src" ]; then
mkdir -p src
vcs import src <autoware.repos
else
echo "Source directory already exists. Updating repositories..."
vcs import docker/src <autoware.repos
vcs pull docker/src
vcs import src <autoware.repos
vcs pull src
fi
}

Expand Down

0 comments on commit 28cd6f7

Please sign in to comment.