Skip to content

Commit 08ec2c0

Browse files
committed
Update system call for windows use
Updated the syntax for use on windows systems. The ' | type' was causing an error on the windows system call. Basic testing shows that removing the ' | type' from the system call results in a working script.
1 parent 1dd120c commit 08ec2c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ function git(varargin)
6767
% Otherwise we can call the real git with the arguments
6868
arguments = parse(varargin{:});
6969
if ispc
70-
prog = 'type'
70+
prog = '';
7171
else
72-
prog = 'cat'
72+
prog = ' | cat';
7373
end
74-
[~,result] = system(['git ',arguments,' | ',prog]);
74+
[~,result] = system(['git ',arguments,prog]);
7575
disp(result)
7676
end
7777
end

0 commit comments

Comments
 (0)