Skip to content

Commit

Permalink
fix ping problem in install_cocosim_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
hbourbouh committed Oct 1, 2020
1 parent 524cbf0 commit 0721fca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/install_cocosim_lib.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,14 @@ function install_cocosim_lib(force)
install_tools(cocosim_path);

%% the following requires internet access.
[status, ~] = system('ping -c1 -q google.com');
% Ping is blocked by some companies networks
%[status, ~] = system('ping -c1 -q google.com');
try
status = 0;
webread('https://www.google.com');
catch
status = 1;
end
if status
%No netwrok connexion
fprintf(['No interent connexion. Repository will not be updated.\n'...
Expand Down

0 comments on commit 0721fca

Please sign in to comment.