From 678fe9d204426c2175921fe03b23a2df75a1cf33 Mon Sep 17 00:00:00 2001 From: Michael Sesterhenn Date: Thu, 20 Jun 2024 13:07:44 -0500 Subject: [PATCH] Trim spaces around k and v in build.properties to be more forgiving. --- sbt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sbt b/sbt index 7d3f707e8..2c1e72cf7 100755 --- a/sbt +++ b/sbt @@ -707,6 +707,9 @@ loadConfigFile() { } loadPropFile() { + # trim key and value so as to be more forgiving with spaces around the '=': + k=$(echo $k |sed -e 's/^\s*(.+)\s*$/\\1/g') + v=$(echo $v |sed -e 's/^\s*(.+)\s*$/\\1/g') while IFS='=' read -r k v; do if [[ "$k" == "sbt.version" ]]; then build_props_sbt_version="$v"