forgegit 1.5.4 → 1.5.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forgegit",
3
- "version": "1.5.4",
3
+ "version": "1.5.5",
4
4
  "description": "Universal Git bootstrap kit for Windows",
5
5
  "bin": {
6
6
  "forge": "./tools/bin/forge.cmd"
@@ -17,7 +17,7 @@ if /i "%~1"=="--version" goto :version
17
17
  goto :install
18
18
 
19
19
  :version
20
- for /f "tokens=2 delims==" %%v in ('findstr /b "set \"FG_VERSION=" "%FORGE_HOME%\.forge\config.cmd" 2^>nul') do echo %%v
20
+ powershell -NoProfile -Command "(Get-Content -LiteralPath '%FORGE_HOME%\.forge\config.cmd' | Select-String 'FG_VERSION=').ToString().Split('=')[1].Trim('\"', ' ')"
21
21
  exit /b 0
22
22
 
23
23
  :help