Set the HISTFILE to /dev/null so we don't rebuild containers on every exec
This commit is contained in:
@@ -44,6 +44,7 @@ func CobraRunE(cmd *cobra.Command, args []string) error {
|
||||
|
||||
ps1string := fmt.Sprintf("[%s] Warewulf> ", containerName)
|
||||
os.Setenv("PS1", ps1string)
|
||||
os.Setenv("HISTFILE", "/dev/null")
|
||||
|
||||
err := syscall.Exec(args[1], args[1:], os.Environ())
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user