refactor: refork tail module
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ import through from "through2";
|
||||
import { Env } from "../common/env";
|
||||
import exec from "../common/exec";
|
||||
import { System } from "../common/system";
|
||||
import { StringWritable } from "../common/tail";
|
||||
import { HandlerWriter } from "../common/tail";
|
||||
import { Downloader } from "../core/download";
|
||||
import { Sdk } from "../core/sdk";
|
||||
import { Command } from "../run/command";
|
||||
@@ -223,7 +223,7 @@ export class Android extends Sdk {
|
||||
const command = new Command(cmd).exec();
|
||||
this.push(command);
|
||||
command.contents.pipe(
|
||||
new StringWritable((line) => {
|
||||
new HandlerWriter((line: string) => {
|
||||
if (line.includes("SDL") && (line.includes("onDestroy()") || line.includes("onStop()"))) {
|
||||
callback();
|
||||
throw "Exit"; // ToDo:
|
||||
|
||||
Reference in New Issue
Block a user