From 1b7ba320c76895936fa8354534cb3289c9ab899c Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 15 Apr 2015 01:10:29 +0300 Subject: [PATCH] Fix handling of paths with spaces in kotlinc script --- compiler/cli/bin/kotlinc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/cli/bin/kotlinc b/compiler/cli/bin/kotlinc index 0300146518b..ba5bcad2564 100755 --- a/compiler/cli/bin/kotlinc +++ b/compiler/cli/bin/kotlinc @@ -14,4 +14,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -$(dirname $0)/kotlinc-jvm "$@" +"$(dirname "$(which "$0")")"/kotlinc-jvm "$@"