nodeswitch 1.9.2 → 1.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  @echo off
2
+ setlocal ENABLEDELAYEDEXPANSION
2
3
 
3
4
  if not "%1" == "" (
4
5
  if not "%2" == "" (
@@ -31,10 +32,10 @@ if not "%1" == "" (
31
32
  ) else if "%1" == "add" (
32
33
  if not exist %AppData%\nodeswitch\%2 (
33
34
  curl -f https://nodejs.org/download/release/v%2/ > nul 2>&1
34
- if %ERRORLEVEL% equ 0 (
35
+ if !ERRORLEVEL! equ 0 (
35
36
  curl -s -o %AppData%\nodeswitch\%2.zip https://nodejs.org/download/release/v%2/node-v%2-win-x64.zip > nul
36
37
 
37
- if not %ERRORLEVEL% equ 0 (
38
+ if not !ERRORLEVEL! equ 0 (
38
39
  del %AppData%\nodeswitch\%2.zip
39
40
  echo Node version not created
40
41
  exit
@@ -42,7 +43,7 @@ if not "%1" == "" (
42
43
 
43
44
  tar -xf %AppData%\nodeswitch\%2.zip -C %AppData%\nodeswitch
44
45
 
45
- if not %ERRORLEVEL% equ 0 (
46
+ if not !ERRORLEVEL! equ 0 (
46
47
  del %AppData%\nodeswitch\%2.zip
47
48
  rd /s /q %AppData%\nodeswitch\node-v%2-win-x64
48
49
  echo Node version not created
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodeswitch",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Node version switcher for Microsoft Windows x64",
5
5
  "scripts": {
6
6
  "preinstall": "node scripts/preinstall.js",