From 37e07eea21d89827a42715d8e3b8c01110c2c5bf Mon Sep 17 00:00:00 2001 From: Eli Uriegas Date: Thu, 15 Dec 2022 11:58:36 -0800 Subject: [PATCH] release: Strip whitespace from version_with_suffix Noticed an errant '\r' when looking through the promotion scripts that cause the substitutions to end up failing later on in the script. This should make it so that this variable won't include any whitespace characters. Signed-off-by: Eli Uriegas --- release/pypi/prep_binary_for_pypi.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release/pypi/prep_binary_for_pypi.sh b/release/pypi/prep_binary_for_pypi.sh index f1d9edb6d..e3b2b28c6 100755 --- a/release/pypi/prep_binary_for_pypi.sh +++ b/release/pypi/prep_binary_for_pypi.sh @@ -40,7 +40,7 @@ for whl_file in "$@"; do set -x unzip -q "${whl_file}" -d "${whl_dir}" ) - version_with_suffix=$(grep '^Version:' "${whl_dir}"/*/METADATA | cut -d' ' -f2) + version_with_suffix=$(grep '^Version:' "${whl_dir}"/*/METADATA | cut -d' ' -f2 | tr -d "[:space:]") version_with_suffix_escaped=${version_with_suffix/+/%2B} # Remove all suffixed +bleh versions