Allow waiting in updating records

This commit is contained in:
Mygod
2019-01-06 00:55:57 +08:00
parent ea9145c2bd
commit 0374b93a64
2 changed files with 7 additions and 1 deletions

View File

@@ -111,6 +111,12 @@ class RootSession : AutoCloseable {
checkOutput(command, result, false)
return result.out
}
fun execOutUnjoinedWithWait(command: String): List<String> {
val result = execQuiet(command)
val message = checkOutput(command, result, false, false)
if (result.err.isNotEmpty()) Timber.i(message)
return result.out
}
fun execOut(command: String): String = execOutUnjoined(command).joinToString("\n")
/**