We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2a2746 commit c0bd667Copy full SHA for c0bd667
1 file changed
.devel/build_ros2.sh
@@ -15,6 +15,11 @@ rosv="jazzy"
15
ubuntuv="noble"
16
# Architecture
17
arch=$(uname -i)
18
+if [[ $arch == x86_64* ]]; then
19
+ archv="amd64"
20
+elif [[ $arch == arm* ]]; then
21
+ archv="arm64"
22
+fi
23
24
PRE_BUILD() {
25
# Remove the debian folder just in case. In ROS1 and catkin this was an issue
@@ -121,6 +126,6 @@ for pkg_name in "${pkg_array[@]}"; do
121
126
cd ..
122
127
# Install package but replace _ by -. E.g. sas_core becomes sas-core.
123
128
# https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
124
- sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"_"$arch".deb
129
+ sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"_"$archv".deb
125
130
${var//12345678/$replace}
131
done
0 commit comments