| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 REM Call frogsh using node. | 2 REM Call frogsh using node. |
| 3 | 3 |
| 4 set SCRIPTPATH=%~dp0 | 4 set SCRIPTPATH=%~dp0 |
| 5 | 5 |
| 6 REM Does the string have a trailing slash? If so, remove it. | 6 REM Does the string have a trailing slash? If so, remove it. |
| 7 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 7 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 8 | 8 |
| 9 REM Canonicalize the direction of the slashes. | 9 REM Canonicalize the direction of the slashes. |
| 10 set script=%* | 10 set script=%* |
| 11 set script=%script:\=/% | 11 set script=%script:\=/% |
| 12 | 12 |
| 13 node "%SCRIPTPATH%\frogsh" --no_colors "%script%" | 13 node %SCRIPTPATH%\frogsh %script% |
| OLD | NEW |