Skip to content

Commit

Permalink
MDEV-30837: Remove usage of AWK in autobake-debs.sh
Browse files Browse the repository at this point in the history
AWK is used in autobake-debs.sh for printing information
about created DEB packages.

This can be rewrite with bash inner commands read and echo.
  • Loading branch information
illuusio authored and grooverdan committed Mar 27, 2023
1 parent fe32a4a commit 31487f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion debian/autobake-deb.sh
Expand Up @@ -201,7 +201,11 @@ then
for package in *.deb
do
echo "$package" | cut -d '_' -f 1
dpkg-deb -c "$package" | awk '{print $1 " " $2 " " $6 " " $7 " " $8}' | sort -k 3
# shellcheck disable=SC2034
dpkg-deb -c "$package" | while IFS=" " read -r col1 col2 col3 col4 col5 col6 col7 col8
do
echo "$col1 $col2 $col6 $col7 $col8" | sort -k 3
done
echo "------------------------------------------------"
done
fi
Expand Down

0 comments on commit 31487f4

Please sign in to comment.