1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

settings: add existence check in addition to RO check

This commit is contained in:
bbedward
2026-01-02 22:36:37 -05:00
parent ba2d51bcbb
commit e1817027b1
2 changed files with 2 additions and 2 deletions

View File

@@ -979,7 +979,7 @@ Singleton {
property string sessionPath: Paths.strip(settingsFile.path)
command: ["sh", "-c", "[ -w \"" + sessionPath + "\" ] && echo 'writable' || echo 'readonly'"]
command: ["sh", "-c", "[ ! -f \"" + sessionPath + "\" ] || [ -w \"" + sessionPath + "\" ] && echo 'writable' || echo 'readonly'"]
running: false
stdout: StdioCollector {

View File

@@ -1910,7 +1910,7 @@ Singleton {
property string settingsPath: Paths.strip(settingsFile.path)
command: ["sh", "-c", "[ -w \"" + settingsPath + "\" ] && echo 'writable' || echo 'readonly'"]
command: ["sh", "-c", "[ ! -f \"" + settingsPath + "\" ] || [ -w \"" + settingsPath + "\" ] && echo 'writable' || echo 'readonly'"]
running: false
stdout: StdioCollector {