Remove execOutUnjoined

This commit is contained in:
Mygod
2019-03-09 00:26:41 -05:00
parent 481cceb3e3
commit fe2e0ef4c8

View File

@@ -103,12 +103,11 @@ class RootSession : AutoCloseable {
}).exec() }).exec()
} }
fun exec(command: String) = checkOutput(command, execQuiet(command)) fun exec(command: String) = checkOutput(command, execQuiet(command))
fun execOutUnjoined(command: String): List<String> { fun execOut(command: String): String {
val result = execQuiet(command) val result = execQuiet(command)
checkOutput(command, result, false) checkOutput(command, result, false)
return result.out return result.out.joinToString("\n")
} }
fun execOut(command: String): String = execOutUnjoined(command).joinToString("\n")
/** /**
* This transaction is different from what you may have in mind since you can revert it after committing it. * This transaction is different from what you may have in mind since you can revert it after committing it.