1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-24 07:20:27 +00:00

Add quotes to shim if install-dir has spaces.

This commit is contained in:
Calvin Rose 2019-08-25 17:18:01 -04:00
parent c45bad9437
commit 91cbe2e22c

View File

@ -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"