Update sbt launcher script

Fix `sbt_script` lookup by replacing all spaces with `%20` (not only the first one) in the path.
This commit is contained in:
Artūras Šlajus 2023-08-02 16:30:40 +03:00 committed by GitHub
parent e1ffc2af08
commit f8a041f47e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

3
sbt
View File

@ -320,7 +320,8 @@ addSbtScriptProperty () {
:
else
sbt_script=$0
sbt_script=${sbt_script/ /%20}
# Use // to replace all spaces with %20.
sbt_script=${sbt_script// /%20}
addJava "-Dsbt.script=$sbt_script"
fi
}