diff options
author | Axetroy <troy450409405@gmail.com> | 2019-06-19 22:16:34 +0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-06-19 07:16:34 -0700 |
commit | 33ffb89f5ca4dc0f671219349a084541da9db7c5 (patch) | |
tree | f425d6a898041b19840b9469d54bf3b593b4dd4c /installer/mod.ts | |
parent | 57edeacaa552e97525fc5aea6b38a95d28c8f21e (diff) |
installer: quote commands correctly (denoland/deno_std#510)
Original: https://github.com/denoland/deno_std/commit/4317af11d18e67dbc79b0df9839180f8e4e55613
Diffstat (limited to 'installer/mod.ts')
-rw-r--r-- | installer/mod.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/installer/mod.ts b/installer/mod.ts index c0a11ac9e..f247c6fd3 100644 --- a/installer/mod.ts +++ b/installer/mod.ts @@ -153,6 +153,7 @@ async function generateExecutable( filePath: string, commands: string[] ): Promise<void> { + commands = commands.map((v): string => JSON.stringify(v)); // On Windows if user is using Powershell .cmd extension is need to run the // installed module. // Generate batch script to satisfy that. |