From 64bb111b197b09bc5c830dfcc830097f065326a4 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 9 Aug 2024 18:24:32 +0200 Subject: [PATCH] promote: Squeeze whitespace before calling `column` --- repo/promote | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repo/promote b/repo/promote index f2f0d80..8c09233 100755 --- a/repo/promote +++ b/repo/promote @@ -70,7 +70,7 @@ OLDVERSION=$($REPREPRO -A source list $FIRST_DIST-pgdg "$PKG" | awk '{ print $3 echo "Old status:" OLDLS=$($REPREPRO ls $PKG; for p in $OTHERBINARIES; do $REPREPRO ls $p; done) echo "$OLDLS" -OLDLSPROD=$(echo "$OLDLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t -s '|' -o '|') +OLDLSPROD=$(echo "$OLDLS" | grep -v -e pgdg-testing -e pgdg-snapshot | sed -e 's/ */ /g' | column -t -s '|' -o '|') echo fi @@ -84,7 +84,7 @@ echo echo "New status:" NEWLS=$($REPREPRO ls $PKG; for p in $OTHERBINARIES; do $REPREPRO ls $p; done) echo "$NEWLS" -NEWLSPROD=$(echo "$NEWLS" | grep -v -e pgdg-testing -e pgdg-snapshot | column -t -s '|' -o '|') +NEWLSPROD=$(echo "$NEWLS" | grep -v -e pgdg-testing -e pgdg-snapshot | sed -e 's/ */ /g' | column -t -s '|' -o '|') echo if [ -z "${DEBUG:-}" ] && [ "$OLDLSPROD" = "$NEWLSPROD" ]; then -- 2.39.5