Regenerated
This commit is contained in:
@@ -70,21 +70,19 @@ Window {
|
||||
id: updater
|
||||
command: ["bash", "/home/henrov/.config/scripts/update-engine.sh"]
|
||||
|
||||
onStdout: function(data) {
|
||||
let line = data.trim()
|
||||
onOutput: function(data) {
|
||||
logModel.append({ text: data.trim() })
|
||||
|
||||
logModel.append({ text: line })
|
||||
|
||||
if (line.startsWith("STEP:")) {
|
||||
let parts = line.split(":")
|
||||
if (data.startsWith("STEP:")) {
|
||||
let parts = data.split(":")
|
||||
root.currentStep = parseInt(parts[1])
|
||||
}
|
||||
|
||||
if (line.startsWith("DONE")) {
|
||||
if (data.startsWith("DONE")) {
|
||||
root.status = "done"
|
||||
}
|
||||
|
||||
if (line.startsWith("FAIL")) {
|
||||
if (data.startsWith("FAIL")) {
|
||||
root.status = "error"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user