diff options
author | Tuukka Pasanen <tuukka.pasanen@ilmi.fi> | 2023-03-24 11:42:15 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2023-03-27 16:28:48 +1100 |
commit | 31487f4b2b6a3c038a39bb68ce96e9c400ca25d6 (patch) | |
tree | b88c18fd7193226153474fee2108cfbad2c5ad2b | |
parent | fe32a4a5bb84afa0db4cf6fee5ce5f37dfa065ea (diff) | |
download | mariadb-git-31487f4b2b6a3c038a39bb68ce96e9c400ca25d6.tar.gz |
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.
-rwxr-xr-x | debian/autobake-deb.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/autobake-deb.sh b/debian/autobake-deb.sh index 68a8ce34283..caef33b2b7d 100755 --- a/debian/autobake-deb.sh +++ b/debian/autobake-deb.sh @@ -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 |