Fix SSH setup hooks for remote worktrees (#2477)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -5,6 +5,9 @@ export function buildSetupRunnerCommand(
|
||||
platform: SetupRunnerCommandPlatform
|
||||
): string {
|
||||
if (platform === 'windows') {
|
||||
if (runnerScriptPath.startsWith('/')) {
|
||||
return `bash ${quotePosixArg(runnerScriptPath)}`
|
||||
}
|
||||
if (isWslUncPath(runnerScriptPath)) {
|
||||
const linuxPath = wslUncToLinuxPath(runnerScriptPath)
|
||||
return `bash ${quotePosixArg(linuxPath)}`
|
||||
|
||||
Reference in New Issue
Block a user