fix: supress within record pty exit codes
This commit is contained in:
@@ -41,9 +41,9 @@ func recordScenario(target, shellPath string, rio recordIO, sandboxConfig map[st
|
|||||||
|
|
||||||
output.Fprintln(rio.err, "Run commands in the recorder shell, then type exit to finish.")
|
output.Fprintln(rio.err, "Run commands in the recorder shell, then type exit to finish.")
|
||||||
|
|
||||||
if err := runRecordSession(target, rawIn, rawOut, shellPath, sandbox, rio, sandboxConfig, setupScripts); err != nil {
|
// this error is intentionally discarded to avoid non zero exit status inside record
|
||||||
return err
|
// as an error
|
||||||
}
|
runRecordSession(target, rawIn, rawOut, shellPath, sandbox, rio, sandboxConfig, setupScripts)
|
||||||
|
|
||||||
save, err := confirmRecordSave(rio)
|
save, err := confirmRecordSave(rio)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
# hoisted vars to fail fast if any missing
|
|
||||||
host_home=${MIRE_HOST_HOME:?}
|
host_home=${MIRE_HOST_HOME:?}
|
||||||
host_tmp=${MIRE_HOST_TMP:?}
|
host_tmp=${MIRE_HOST_TMP:?}
|
||||||
path_env=${MIRE_PATH_ENV:?}
|
path_env=${MIRE_PATH_ENV:?}
|
||||||
|
|||||||
Reference in New Issue
Block a user