Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- #1178: Add `-password-env` and `-token-env` modifiers to the `repo` command to read the password/token from a named environment variable (secure alternatives to `-password` and `-token`).

### Changed
- #1186: Change %IPM.Main:ShellScript() to return a status.

### Fixed
- #1207: Zero-byte files are now supported in IPM modules

Expand Down
7 changes: 5 additions & 2 deletions src/cls/IPM/Main.cls
Original file line number Diff line number Diff line change
Expand Up @@ -4073,7 +4073,8 @@ ClassMethod History(ByRef pCommandInfo)
ClassMethod ShellScript(
pCommand As %String,
pOutputLogFile As %String = "",
pAppendToLog As %Boolean = 0)
pAppendToLog As %Boolean = 0,
pTerminateOnError As %Boolean = 1) As %Status
{
set tSC = $$$OK
set tFileOpen = 0
Expand Down Expand Up @@ -4105,10 +4106,12 @@ ClassMethod ShellScript(
close pOutputLogFile
}

Comment thread
isc-kiyer marked this conversation as resolved.
if $$$ISERR(tSC) {
if (pTerminateOnError && $$$ISERR(tSC)) {
// Set ERRORLEVEL to 1
do $system.Process.Terminate(,1)
}

return tSC
}

ClassMethod DisplayModules(
Expand Down
Loading