From 715cf15b2649390f83de775b0924d547662b6902 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niccol=C3=B2=20Fei?= Date: Wed, 27 Nov 2024 13:54:00 +0100 Subject: [PATCH] chore: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Niccolò Fei --- UBI/update.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/UBI/update.sh b/UBI/update.sh index 3d665308..f0f46d6d 100755 --- a/UBI/update.sh +++ b/UBI/update.sh @@ -222,19 +222,19 @@ generate_redhat() { exit 1 fi - if [ -f "${versionFile}" ]; then + if [ -f "${versionFile}" ]; then oldUbiVersion=$(jq -r '.UBI_VERSION' "${versionFile}") oldPostgresqlVersion=$(jq -r '.POSTGRES_VERSION' "${versionFile}") oldBarmanVersion=$(jq -r '.BARMAN_VERSION' "${versionFile}") oldImageReleaseVersion=$(jq -r '.IMAGE_RELEASE_VERSION' "${versionFile}") imageReleaseVersion=$oldImageReleaseVersion - fi + fi pg_x86_64=$(get_postgresql_version "${ubiRelease}" 'x86_64' "$version") pg_ppc64le=$(get_postgresql_version "${ubiRelease}" 'ppc64le' "$version") pg_s390x=$(get_postgresql_version "${ubiRelease}" 's390x' "$version") pg_arm64=$(get_postgresql_version "${ubiRelease}" 'aarch64' "$version") - postgresqlVersion="${pg_x86_64}" + postgresqlVersion="${pg_x86_64}" if ! compare_architecture_pkgs "$pg_x86_64" "$pg_arm64" "$pg_ppc64le" "$pg_s390x"; then echo "Version discrepancy between the architectures of PostgreSQL $version packages in UBI$ubiRelease." >&2 echo "x86_64: $pg_x86_64" >&2 @@ -393,20 +393,20 @@ generate_redhat_postgis() { oldBarmanVersion=$(jq -r '.BARMAN_VERSION' "${versionFile}") oldImageReleaseVersion=$(jq -r '.IMAGE_RELEASE_VERSION' "${versionFile}") imageReleaseVersion=$oldImageReleaseVersion - fi + fi pg_x86_64=$(get_postgresql_version "${ubiRelease}" 'x86_64' "$version") pg_ppc64le=$(get_postgresql_version "${ubiRelease}" 'ppc64le' "$version") pg_s390x=$(get_postgresql_version "${ubiRelease}" 's390x' "$version") pg_arm64=$(get_postgresql_version "${ubiRelease}" 'aarch64' "$version") - postgresqlVersion="${pg_x86_64}" + postgresqlVersion="${pg_x86_64}" if ! compare_architecture_pkgs "$pg_x86_64" "$pg_arm64" "$pg_ppc64le" "$pg_s390x"; then echo "Version discrepancy between the architectures of PostgreSQL $version packages in UBI$ubiRelease." >&2 echo "x86_64: $pg_x86_64" >&2 echo "arm64: $pg_arm64" >&2 echo "ppc64le: $pg_ppc64le" >&2 echo "s390x: $pg_s390x" >&2 - postgresqlVersion="${oldPostgresqlVersion}" + postgresqlVersion="${oldPostgresqlVersion}" fi if [ -z "$postgresqlVersion" ]; then