Skip to content

Commit

Permalink
fixed package grep
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Sep 16, 2023
1 parent 3b9912a commit 625330a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ for PACKAGE in $BUILD_ORDER; do

FIND_METAPACKAGE=$(cat CMakeLists.txt | grep -e "^catkin_metapackage" | wc -l)

DEB_NAME=$(dpkg --field ../*.deb | grep Package | awk '{print $2}')
DEB_NAME=$(dpkg --field ../*.deb | grep "Package:" | head -n 1 | awk '{print $2}')

if [ $FIND_METAPACKAGE -eq 0 ]; then
sudo apt-get -y install --allow-downgrades ../*.deb
Expand Down

0 comments on commit 625330a

Please sign in to comment.