Skip to content

Commit

Permalink
dont use deprecated RunCommand
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Dec 19, 2016
1 parent 694ce33 commit 2398a05
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions app/proc_globdata.pas
Original file line number Diff line number Diff line change
Expand Up @@ -679,14 +679,23 @@ procedure InitDirs;
if DirectoryExistsUTF8(OpDirPrecopy) then
begin
{$ifdef linux}
RunCommand(Format('cp -R -u -t %s /usr/share/cudatext/py /usr/share/cudatext/data /usr/share/cudatext/readme /usr/share/cudatext/settings_default', [OpDirLocal]), S);
RunCommand('cp', ['-R', '-u', '-t',
OpDirLocal,
'/usr/share/cudatext/py',
'/usr/share/cudatext/data',
'/usr/share/cudatext/readme',
'/usr/share/cudatext/settings_default'
], S);
{$endif}
{$ifdef darwin}
//see rsync help. need options:
// -u (update)
// -r (recursive)
// -t (preserve times)
RunCommand(Format('rsync -urt "%s/" "%s"', [OpDirPrecopy, OpDirLocal]), S);
RunCommand('rsync', ['-urt',
Format('"%s/"', [OpDirPrecopy]),
Format('"%s"', [OpDirLocal])
], S);
{$endif}
end;
end;
Expand Down

0 comments on commit 2398a05

Please sign in to comment.