Skip to content

Commit 8f0257c

Browse files
kylecarbsmafredri
andauthored
Update agent/agentssh/agentssh.go
Co-authored-by: Mathias Fredriksson <mafredri@gmail.com>
1 parent 883ccc7 commit 8f0257c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agentssh/agentssh.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ func (s *Server) CreateCommand(ctx context.Context, script string, env []string)
544544
args = []string{}
545545
}
546546
scriptSha := sha256.Sum256([]byte(script))
547-
tempFile, err := os.CreateTemp("", fmt.Sprintf("coder-script-%x", scriptSha))
547+
tempFile, err := os.CreateTemp("", fmt.Sprintf("coder-script-%x.*", scriptSha))
548548
if err != nil {
549549
return nil, nil, xerrors.Errorf("create temp file: %w", err)
550550
}

0 commit comments

Comments
 (0)