Skip to content

Commit

Permalink
eeeeeeeeeeeeeee
Browse files Browse the repository at this point in the history
  • Loading branch information
nift4 committed Jan 18, 2025
1 parent c708620 commit ffe3fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/org/andbootmgr/app/util/Terminal.kt
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ fun TerminalWork(logFile: String? = null, action: suspend (TerminalList) -> Unit
LaunchedEffect(Unit) {
val logDispatcher = Dispatchers.IO.limitedParallelism(1)
val log = logFile?.let {
val logDir = ctx.externalCacheDirs.filterNotNull().firstOrNull() ?: run {
val logDir = ctx.externalCacheDirs.firstOrNull() ?: run {
File(Environment.getExternalStorageDirectory(), "AbmLogs").also { it.mkdir() }
}
SuFileOutputStream.open(File(logDir, it))
Expand Down

0 comments on commit ffe3fcd

Please sign in to comment.