Set the HISTFILE to /dev/null so we don't rebuild containers on every exec

This commit is contained in:
Gregory Kurtzer
2020-12-19 21:06:04 -08:00
parent d9b21df38e
commit 90157e340a

View File

@@ -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 {