Skip to content

Commit

Permalink
R2021a+ syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jul 9, 2024
1 parent 20b6c42 commit 347de22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion +stdlib/+fileio/extract_zstd.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function extract_zstd(archive, out_dir)
extract_zstd_bin(archive, out_dir)
end

[ret, msg] = stdlib.sys.subprocess_run([exe, "-E", "tar", "xf", archive], "cwd", out_dir);
[ret, msg] = stdlib.sys.subprocess_run([exe, "-E", "tar", "xf", archive], cwd=out_dir);
assert(ret == 0, "problem extracting %s %s", archive, msg)

end
Expand Down
2 changes: 1 addition & 1 deletion +stdlib/subprocess_run.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
end

[status, stdout, stderr] = stdlib.sys.subprocess_run(cmd_array, ...
'env', opt.env, 'cwd', opt.cwd, "stdin", opt.stdin);
env=opt.env, cwd=opt.cwd, stdin=opt.stdin);

if nargout<3
fprintf(2, stderr)
Expand Down

0 comments on commit 347de22

Please sign in to comment.