Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions internal/cli/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,18 @@ func bootstrapEnv(sshConfigPath, sandboxName, repoDir string, h *harness.Harness
return fmt.Errorf("copying host file %s to %s: %w", hf.Src, hf.Dest, err)
}
}

// TODO(#312): remove this once admin install preserves the executable
Comment thread
ralphbean marked this conversation as resolved.
Resolved
// bit when writing files to .fullsend/. The GitHub Contents API commits
// everything as 100644, so scripts lose +x. Force it back for anything
// landing in a bin/ directory.
// https://github.com/fullsend-ai/fullsend/issues/312#issuecomment-4300729520
Comment thread
ralphbean marked this conversation as resolved.
Resolved
if strings.Contains(hf.Dest, "/bin/") {
chmodCmd := fmt.Sprintf("chmod +x %s", hf.Dest)
if _, _, _, sshErr := sandbox.SSH(sshConfigPath, sandboxName, chmodCmd, 10*time.Second); sshErr != nil {
return fmt.Errorf("chmod host file %s in sandbox: %w", hf.Dest, sshErr)
}
}
}

return nil
Expand Down
Loading