remove shell history boolean
All checks were successful
ci/woodpecker/push/publish-docs Pipeline was successful
All checks were successful
ci/woodpecker/push/publish-docs Pipeline was successful
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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"`
|
||||||
|
|||||||
Reference in New Issue
Block a user