1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 15:32:50 -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 id: versionDetection
command: ["sh", "-c", "if [ -d .git ]; then echo \"(git) $(git rev-parse --short HEAD)\"; elif [ -f VERSION ]; then cat VERSION; fi"] command: ["sh", "-c", "if [ -d .git ]; then echo \"(git) $(git rev-parse --short HEAD)\"; elif [ -f VERSION ]; then cat VERSION; fi"]
onExited: (exitCode) => { stdout: StdioCollector {
if (exitCode === 0) { onStreamFinished: {
shellVersion = stdout.text.trim() shellVersion = text.trim()
} }
} }
stdout: StdioCollector {}
} }
Process { Process {