diff --git a/NPMK/NPMKverChecker.m b/NPMK/NPMKverChecker.m index bddf62a..c06538c 100644 --- a/NPMK/NPMKverChecker.m +++ b/NPMK/NPMKverChecker.m @@ -18,15 +18,21 @@ function NPMKverChecker() % 1.0.0.0: September 13, 2017 % - Initial release. % +% 1.0.1.0: September 13, 2017 +% - Fixed a crash in case there is no Internet connection. +% %% Check for the latest version fo NPMK -FIDv = fopen('Versions.txt'); -verFile = fscanf(FIDv, '%s'); -fclose(FIDv); -latestVersion = verFile(findstr('LATEST', verFile)+7:findstr('LATEST', verFile)+13); -gitHubPage = urlread('https://github.com/BlackrockMicrosystems/NPMK/releases/latest'); -newVersionAvailable = findstr(latestVersion, gitHubPage); -if isempty(newVersionAvailable) - disp('A new version of NPMK may be available.'); - disp('Please visit https://github.com/BlackrockMicrosystems/NPMK/releases/latest to get the latest version.'); +try + FIDv = fopen('Versions.txt'); + verFile = fscanf(FIDv, '%s'); + fclose(FIDv); + latestVersion = verFile(findstr('LATEST', verFile)+7:findstr('LATEST', verFile)+13); + gitHubPage = urlread('https://github.com/BlackrockMicrosystems/NPMK/releases/latest'); + newVersionAvailable = findstr(latestVersion, gitHubPage); + if isempty(newVersionAvailable) + disp('A new version of NPMK may be available.'); + disp('Please visit https://github.com/BlackrockMicrosystems/NPMK/releases/latest to get the latest version.'); + end +catch end \ No newline at end of file diff --git a/NPMK/Versions.txt b/NPMK/Versions.txt index c74dea4..364d53b 100644 --- a/NPMK/Versions.txt +++ b/NPMK/Versions.txt @@ -373,4 +373,10 @@ NPMK Version 2.8.2.0: 5 May 2014 % NPMKverChecker 1.0.0.0: September 13, 2017 % - Initial Release. -LATEST:4.5.1.1 \ No newline at end of file +***** NPMK Version 4.5.2.0 :September 13, 2017 ***** + +% NPMKverChecker 1.0.1.0: September 13, 2017 +% - Fixed a crash in case there is no Internet connection. +% + +LATEST:4.5.2.0 \ No newline at end of file