From 91cbe2e22c3a3ecee383bd2160f52a4585d16e6a Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sun, 25 Aug 2019 17:18:01 -0400 Subject: [PATCH] Add quotes to shim if install-dir has spaces. --- auxlib/cook.janet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auxlib/cook.janet b/auxlib/cook.janet index 392fb27d..2b08224b 100644 --- a/auxlib/cook.janet +++ b/auxlib/cook.janet @@ -690,7 +690,7 @@ int main(int argc, const char **argv) { (when is-win (def name (last (string/split sep main))) (def fullname (string binpath sep name)) - (def bat (string "@echo off\r\njanet " fullname " %*")) + (def bat (string "@echo off\r\njanet \"" fullname "\" %*")) (def newname (string binpath sep name ".bat")) (array/push (dyn :installed-files) newname) (add-body "install"