mirror of https://github.com/sbt/sbt.git
Trim spaces around k and v in build.properties to be more forgiving.
This commit is contained in:
parent
586e0a752c
commit
678fe9d204
3
sbt
3
sbt
|
|
@ -707,6 +707,9 @@ loadConfigFile() {
|
||||||
}
|
}
|
||||||
|
|
||||||
loadPropFile() {
|
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
|
while IFS='=' read -r k v; do
|
||||||
if [[ "$k" == "sbt.version" ]]; then
|
if [[ "$k" == "sbt.version" ]]; then
|
||||||
build_props_sbt_version="$v"
|
build_props_sbt_version="$v"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue