Skip to content

Commit

Permalink
fix env var setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 25, 2018
1 parent fe60ecf commit c1e5cdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,8 @@ export default class UpdateCommand extends Command {
if (this.config.windows) {
let body = `@echo off
setlocal enableextensions
set ${redirectedEnvVar}="1"
set ${binPathEnvVar}="%~dp0${bin}"
set ${redirectedEnvVar}=1
set ${binPathEnvVar}=%~dp0${bin}
"%~dp0..\\${version}\\bin\\${bin}.cmd" %*
`
await fs.outputFile(dst, body)
Expand Down

0 comments on commit c1e5cdc

Please sign in to comment.