From f8a041f47e6c8e26dde6dcb6a2a0037c49369b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Art=C5=ABras=20=C5=A0lajus?= Date: Wed, 2 Aug 2023 16:30:40 +0300 Subject: [PATCH] Update sbt launcher script Fix `sbt_script` lookup by replacing all spaces with `%20` (not only the first one) in the path. --- sbt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sbt b/sbt index a1e5f6c91..e7697e190 100755 --- a/sbt +++ b/sbt @@ -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 }