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:
parent
c45bad9437
commit
91cbe2e22c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user