File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/main/kotlin/krews/misc Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ plugins {
13
13
}
14
14
15
15
group = " io.krews"
16
- version = " 0.14.12 "
16
+ version = " 0.14.13 "
17
17
18
18
repositories {
19
19
maven { setUrl(" https://dl.bintray.com/kotlin/kotlin-eap" ) }
Original file line number Diff line number Diff line change @@ -23,8 +23,9 @@ class CommandExecutor(private val sshConfig: SshConfig? = null) {
23
23
log.info { " Command results:\n $result " }
24
24
25
25
val error = process.errorStream.reader().readText()
26
- if (error.isNotBlank()) throw Exception (" Encountered error during command execution: $error " )
26
+ val exitCode = process.waitFor()
27
+ if (exitCode != 0 ) throw Exception (" Encountered error during command execution: $error " )
27
28
return result
28
29
}
29
30
30
- }
31
+ }
You can’t perform that action at this time.
0 commit comments