remove shell history boolean
All checks were successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
2026-02-14 18:57:37 -06:00
parent 52e25aad77
commit c078632691
2 changed files with 3 additions and 5 deletions

View File

@@ -764,9 +764,9 @@ func (command *Command) prepareScriptBuffer() (*bytes.Buffer, error) {
func (command *Command) prepareScriptFileBuffer() (*bytes.Buffer, error) { func (command *Command) prepareScriptFileBuffer() (*bytes.Buffer, error) {
var buffer bytes.Buffer var buffer bytes.Buffer
if !command.SaveShellHistory { // if !command.SaveShellHistory {
buffer.WriteString("unset HISTFILE\nexport HISTSIZE=0\nexport SAVEHIST=0\n") // buffer.WriteString("unset HISTFILE\nexport HISTSIZE=0\nexport SAVEHIST=0\n")
} // }
for _, envVar := range command.Environment { for _, envVar := range command.Environment {
fmt.Fprintf(&buffer, "export %s", envVar) fmt.Fprintf(&buffer, "export %s", envVar)

View File

@@ -80,8 +80,6 @@ type (
ScriptEnvFile string `yaml:"scriptEnvFile"` ScriptEnvFile string `yaml:"scriptEnvFile"`
SaveShellHistory bool `yaml:"saveShellHistory,omitempty"`
Output struct { Output struct {
File string `yaml:"file,omitempty"` File string `yaml:"file,omitempty"`
ToLog bool `yaml:"toLog,omitempty"` ToLog bool `yaml:"toLog,omitempty"`