We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00d88b9 commit 93d912eCopy full SHA for 93d912e
internal/testhelpers/e2e/session.go
@@ -787,7 +787,7 @@ func (s *Session) SetupRCFileCustom(subshell subshell.SubShell) {
787
rcFile, err := subshell.RcFile()
788
require.NoError(s.T, err)
789
790
- if fileutils.TargetExists(filepath.Join(s.Dirs.HomeDir, filepath.Base(rcFile))) {
+ if fileutils.TargetExists(rcFile) && fileutils.TargetExists(filepath.Join(s.Dirs.HomeDir, filepath.Base(rcFile))) {
791
err = fileutils.CopyFile(rcFile, filepath.Join(s.Dirs.HomeDir, filepath.Base(rcFile)))
792
} else {
793
err = fileutils.Touch(filepath.Join(s.Dirs.HomeDir, filepath.Base(rcFile)))
0 commit comments