1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

better proc usage

This commit is contained in:
bbedward
2025-10-03 19:35:13 -04:00
parent 90854e1dd4
commit c3d505cdad

View File

@@ -54,13 +54,11 @@ Singleton {
id: versionDetection
command: ["sh", "-c", "if [ -d .git ]; then echo \"(git) $(git rev-parse --short HEAD)\"; elif [ -f VERSION ]; then cat VERSION; fi"]
onExited: (exitCode) => {
if (exitCode === 0) {
shellVersion = stdout.text.trim()
}
stdout: StdioCollector {
onStreamFinished: {
shellVersion = text.trim()
}
}
stdout: StdioCollector {}
}
Process {