Skip to content

Commit ca1d955

Browse files
author
Murilo Marinho
committed
Maybe arch is not needed
1 parent c0bd667 commit ca1d955

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

.devel/build_ros2.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ export DEB_BUILD_OPTIONS=parallel=4
1313
rosv="jazzy"
1414
# Ubuntu version
1515
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
2316

2417
PRE_BUILD() {
2518
# Remove the debian folder just in case. In ROS1 and catkin this was an issue
@@ -126,6 +119,6 @@ for pkg_name in "${pkg_array[@]}"; do
126119
cd ..
127120
# Install package but replace _ by -. E.g. sas_core becomes sas-core.
128121
# https://stackoverflow.com/questions/3306007/replace-a-string-in-shell-script-using-a-variable
129-
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"_"$archv".deb
122+
sudo dpkg -i ros-"$rosv"-"${pkg_name//_/-}"_*"$ubuntuv"*.deb
130123
${var//12345678/$replace}
131124
done

0 commit comments

Comments
 (0)