Skip to content

Commit

Permalink
fix: setlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Apr 20, 2018
1 parent df23ed8 commit 665dda9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ export default class UpdateCommand extends Command {
const redirectedEnvVar = this.config.scopedEnvVarKey('REDIRECTED')
if (this.config.windows) {
let body = `@echo off
setlocal enableextensions
set ${redirectedEnvVar}="1"
set ${binPathEnvVar}="%~dp0${bin}"
"%~dp0..\\${version}\\bin\\${bin}.cmd" %*
Expand Down

0 comments on commit 665dda9

Please sign in to comment.