Skip to content

Commit 5f44caa

Browse files
committed
Fixed null error while trying to pull empty custom msgs repo
1 parent 6dc8983 commit 5f44caa

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

pull_repositories.ps1

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ if (([string]::IsNullOrEmpty($Env:ROS_DISTRO)))
88

99
$ros2cs_repos = Join-Path -Path $scriptPath -ChildPath "\ros2cs.repos"
1010
$custom_repos = Join-Path -Path $scriptPath -ChildPath "\ros2_for_unity_custom_messages.repos"
11+
12+
Write-Host "========================================="
13+
Write-Host "* Pulling ros2cs repository:"
1114
vcs import --input $ros2cs_repos
15+
16+
Write-Host ""
17+
Write-Host "========================================="
18+
Write-Host "Pulling custom repositories:"
1219
vcs import --input $custom_repos
1320

21+
Write-Host ""
22+
Write-Host "========================================="
23+
Write-Host "Pulling ros2cs dependencies:"
1424
& "$scriptPath/src/ros2cs/get_repos.ps1"

pull_repositories.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,18 @@ if [ -z "${ROS_DISTRO}" ]; then
88
exit 1
99
fi
1010

11+
echo "========================================="
12+
echo "* Pulling ros2cs repository:"
1113
vcs import < "ros2cs.repos"
14+
15+
echo ""
16+
echo "========================================="
17+
echo "Pulling custom repositories:"
1218
vcs import < "ros2_for_unity_custom_messages.repos"
19+
20+
echo ""
21+
echo "========================================="
22+
echo "Pulling ros2cs dependencies:"
1323
cd "$SCRIPTPATH/src/ros2cs"
1424
./get_repos.sh
1525
cd -

ros2_for_unity_custom_messages.repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# NOTE: Use this file if you want to build with custom messages that reside in a separate remote repo.
22
# NOTE: use the following format
33

4-
#repositories:
4+
repositories:
55
# src/ros2cs/custom_messages/<package_name>:
66
# type: git
77
# url: <repo_url>

0 commit comments

Comments
 (0)