diff options
author | Christoph Berg | 2024-08-09 16:24:32 +0000 |
---|---|---|
committer | Christoph Berg | 2024-08-09 16:24:32 +0000 |
commit | 64bb111b197b09bc5c830dfcc830097f065326a4 (patch) | |
tree | e10680b5ea2653a0958312a4bc57cdff51090294 | |
parent | a93a8da3efcdec879af73a4be96671c000e299d6 (diff) |
promote: Squeeze whitespace before calling `column`
-rwxr-xr-x | repo/promote | 4 |
1 files 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 |