Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

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 f8a3ce5 commit 39ba94b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -11,7 +11,7 @@
"@oclif/command": "^1.4.13",
"@oclif/config": "^1.6.6",
"@oclif/errors": "^1.0.4",
"@oclif/plugin-help": "^1.2.4",
"@oclif/plugin-help": "^1.2.5",
"cli-ux": "^3.3.31",
"debug": "^3.1.0",
"fs-extra": "^5.0.0",
Expand Down
1 change: 1 addition & 0 deletions src/commands/pack/win.ts
Expand Up @@ -33,6 +33,7 @@ export default class PackWin extends Command {

const scripts = {
cmd: (config: Config.IConfig) => `@echo off
setlocal enableextensions
set ${config.scopedEnvVarKey('BINPATH')}=%~dp0\\${config.bin}.cmd
if exist "%LOCALAPPDATA%\\${config.dirname}\\client\\bin\\${config.bin}.cmd" (
Expand Down
1 change: 1 addition & 0 deletions src/tarballs/bin.ts
Expand Up @@ -7,6 +7,7 @@ export async function writeBinScripts({config, baseWorkspace, nodeVersion}: {con
const writeWin32 = async () => {
const {bin} = config
await qq.write([baseWorkspace, 'bin', `${config.bin}.cmd`], `@echo off
setlocal enableextensions
if not "%${redirectedEnvVar}%"=="1" if exist "%LOCALAPPDATA%\\${bin}\\client\\bin\\${bin}.cmd" (
set ${redirectedEnvVar}=1
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -81,12 +81,12 @@
"@oclif/linewrap" "^1.0.0"
chalk "^2.3.2"

"@oclif/plugin-help@^1.2.4":
version "1.2.4"
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.2.4.tgz#1b4349f7d570445ad5cfe4f925bfd832d4552aa2"
"@oclif/plugin-help@^1.2.5":
version "1.2.5"
resolved "https://registry.yarnpkg.com/@oclif/plugin-help/-/plugin-help-1.2.5.tgz#5a184cdac3d0cf9c12b444e693e5102b288bde24"
dependencies:
"@oclif/command" "^1.4.13"
chalk "^2.3.2"
chalk "^2.4.0"
indent-string "^3.2.0"
lodash.template "^4.4.0"
string-width "^2.1.1"
Expand Down

0 comments on commit 39ba94b

Please sign in to comment.