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

Fix version detection

This commit is contained in:
bbedward
2025-10-15 08:40:12 -04:00
parent 38c1f7bbcb
commit 697fc4d2b7

View File

@@ -126,7 +126,10 @@ Singleton {
Process {
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",
`cd "${Quickshell.shellDir}" && if [ -f VERSION ]; then cat VERSION; elif [ -d .git ]; then echo "(git) $(git rev-parse --short HEAD)"; fi`
]
stdout: StdioCollector {
onStreamFinished: {