Fail loudly on chmod errors in remote CLI launcher install (#8648)

Silently swallowing chmod failures let installs proceed with a
non-executable launcher, surfacing as a confusing runtime error later
instead of a clear install-time failure.
This commit is contained in:
Jinjing
2026-07-13 19:08:46 -07:00
committed by GitHub
parent 01d7cd779f
commit 79369d5396
+2 -1
View File
@@ -232,6 +232,7 @@ export function createRemoteCliInstallPlan(env: RemoteCliInstallEnv): RemoteCliI
].join('\n')
}
],
postWriteCommands: [`chmod +x ${quoteSh(launcherPath)} 2>/dev/null; true`]
// Surface chmod failures: a non-executable launcher must fail install loudly, not silently.
postWriteCommands: [`chmod +x ${quoteSh(launcherPath)}`]
}
}