settings: add existence check in addition to RO check

This commit is contained in:
bbedward committed 2026-01-02 22:36:37 -05:00
1 parent ba2d51bcbb
commit e1817027b1
2 files changed
+2 -2

No files matched your search

+1 -1
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 {
+1 -1
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 {