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:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user