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:
@@ -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)}`]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user