mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-03-09 13:00:53 +01:00
rename to mshell_exittrap
This commit is contained in:
parent
f010758b36
commit
7250bbb1ad
@ -451,7 +451,7 @@ func ParseShellStateOutput(outputBytes []byte) (*packet.ShellState, error) {
|
||||
}
|
||||
rtn.Aliases = strings.ReplaceAll(string(fields[3]), "\r\n", "\n")
|
||||
rtn.Funcs = strings.ReplaceAll(string(fields[4]), "\r\n", "\n")
|
||||
rtn.Funcs = removeFunc(rtn.Funcs, "_scripthaus_exittrap")
|
||||
rtn.Funcs = removeFunc(rtn.Funcs, "_mshell_exittrap")
|
||||
return rtn, nil
|
||||
}
|
||||
|
||||
|
@ -995,10 +995,10 @@ func makeRcFileStr(pk *packet.RunPacketType) string {
|
||||
func makeExitTrap(fdNum int) string {
|
||||
stateCmd := GetShellStateRedirectCommandStr(fdNum)
|
||||
fmtStr := `
|
||||
_scripthaus_exittrap () {
|
||||
_mshell_exittrap () {
|
||||
%s
|
||||
}
|
||||
trap _scripthaus_exittrap EXIT
|
||||
trap _mshell_exittrap EXIT
|
||||
`
|
||||
return fmt.Sprintf(fmtStr, stateCmd)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user