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:
@@ -979,7 +979,7 @@ Singleton {
|
|||||||
|
|
||||||
property string sessionPath: Paths.strip(settingsFile.path)
|
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
|
running: false
|
||||||
|
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
|
|||||||
@@ -1910,7 +1910,7 @@ Singleton {
|
|||||||
|
|
||||||
property string settingsPath: Paths.strip(settingsFile.path)
|
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
|
running: false
|
||||||
|
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
|
|||||||
Reference in New Issue
Block a user