From f2307913c65fbe46ca65f324690b3a2dff5e1641 Mon Sep 17 00:00:00 2001 From: brianheineman Date: Sun, 9 Mar 2025 17:17:00 -0600 Subject: [PATCH] fix: correct cpu architecture test --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c256767..47dbd73 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -387,9 +387,9 @@ jobs: postgres_file="$INSTALL_DIRECTORY/bin/postgres" if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then - cpu_architecture=$(readelf --file-header "$postgres_file" | grep 'Machine:' | sed -e 's/ *Machine:\ *//g') + cpu_architecture=$(readelf --file-header "$postgres_file" | grep 'Machine:') else - cpu_architecture=$(file "$postgres_file" | awk '{print $5}') + cpu_architecture=$(file "$postgres_file") fi echo "CPU_ARCHITECTURE=$cpu_architecture" | tee -a $GITHUB_ENV