Skip to content

Commit 640cbe3

Browse files
authored
chore: change sys.download to use the workspace by default (#364)
Signed-off-by: Grant Linville <[email protected]>
1 parent 549f5d1 commit 640cbe3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/builtin/builtin.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,10 @@ func SysDownload(ctx context.Context, env []string, input string) (_ string, err
717717
}
718718

719719
checkExists := true
720-
tmpDir := ""
720+
tmpDir, err := getWorkspaceDir(env)
721+
if err != nil {
722+
return "", err
723+
}
721724

722725
if params.Location != "" {
723726
if s, err := os.Stat(params.Location); err == nil && s.IsDir() {

0 commit comments

Comments
 (0)