-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from laina-mater/flexible-install-path
Add parameter for fallback install script path
- Loading branch information
Showing
2 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
REM This is being run by the nuget install and also if you run update.cmd, there should be no need to run it manually otherwise | ||
set installScriptPath=%~1 | ||
|
||
if exist "install.js" ( | ||
"../.bin/node.cmd" install.js | ||
) else ( | ||
"../.bin/node.cmd" "../../packages/jsreport.Embedded.1.0.3/tools/install.js" | ||
"../.bin/node.cmd" install.js | ||
exit /b | ||
) | ||
|
||
if "%installScriptPath%" == "" ( | ||
exit /b 87 | ||
) | ||
|
||
if not exist "%installScriptPath%" ( | ||
exit /b 2 | ||
) | ||
|
||
"../.bin/node.cmd" "%installScriptPath%" |