mirror of
https://github.com/janet-lang/janet
synced 2025-01-11 16:10: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
|
(when is-win
|
||||||
(def name (last (string/split sep main)))
|
(def name (last (string/split sep main)))
|
||||||
(def fullname (string binpath sep name))
|
(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"))
|
(def newname (string binpath sep name ".bat"))
|
||||||
(array/push (dyn :installed-files) newname)
|
(array/push (dyn :installed-files) newname)
|
||||||
(add-body "install"
|
(add-body "install"
|
||||||
|
Loading…
Reference in New Issue
Block a user