mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-30837: Remove usage of AWK in autobake-debs.sh
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.
This commit is contained in:
parent
f99a891858
commit
c5e50c48bb
1 changed files with 5 additions and 1 deletions
6
debian/autobake-deb.sh
vendored
6
debian/autobake-deb.sh
vendored
|
@ -215,7 +215,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
|
||||
|
|
Loading…
Reference in a new issue