protected static List<String> checkOsRequirements(final String osName,final String osVersion){
  final ArrayList<String> result=new ArrayList<String>();
  if (Provider.isMac(osName)) {
    final Version version=Version.parseVersion(osVersion);
    final String badVersionMessage="The version of Mac OS X running is " + version.getMajor() + "."+ version.getMinor()+ "."+ version.getPatch()+ " which does not meet the minimum version of 10.9.5 needed for installation. Please upgrade to Mac OS X 10.9.5 or above to proceed.";
    if (version.getMajor() < 10) {
      result.add(badVersionMessage);
    }
 else     if (version.getMajor() == 10) {
      if (version.getMinor() < 9) {
        result.add(badVersionMessage);
      }
 else       if (version.getMinor() == 9) {
        if (version.getPatch() < 5) {
          result.add(badVersionMessage);
        }
      }
    }
  }
 else   if (Provider.isLinux(osName)) {
  }
 else   if (Provider.isWindows(osName)) {
    result.add("It looks like you are running on Windows, please consider using the Git Credential Manager for Windows: https://github.com/Microsoft/Git-Credential-Manager-for-Windows");
  }
 else {
    result.add("The Git Credential Manager for Mac and Linux is only supported on, well, Mac OS X and Linux. The operating system detected is " + osName + ", which is not supported.");
  }
  return result;
}

protected static List < String > checkOsRequirements ( final String osName , final String osVersion ) { final ArrayList < String > result = new ArrayList < String > ( ) ; if ( Provider . isMac ( osName ) ) { final Version version = Version . parseVersion ( osVersion ) ; final String badVersionMessage = "The version of Mac OS X running is " + version . getMajor ( ) + "." + version . getMinor ( ) + "." + version . getPatch ( ) + " which does not meet the minimum version of 10.9.5 needed for installation. Please upgrade to Mac OS X 10.9.5 or above to proceed." ; if ( version . getMajor ( ) < 10 ) { result . add ( badVersionMessage ) ; } else if ( version . getMajor ( ) == 10 ) { if ( version . getMinor ( ) < 9 ) { result . add ( badVersionMessage ) ; } else if ( version . getMinor ( ) == 9 ) { if ( version . getPatch ( ) < 5 ) { result . add ( badVersionMessage ) ; } } } } else if ( Provider . isLinux ( osName ) ) { } else if ( Provider . isWindows ( osName ) ) { result . add ( "It looks like you are running on Windows, please consider using the Git Credential Manager for Windows: https://github.com/Microsoft/Git-Credential-Manager-for-Windows" ) ; } else { result . add ( "The Git Credential Manager for Mac and Linux is only supported on, well, Mac OS X and Linux. The operating system detected is " + osName + ", which is not supported." ) ; } return result ; }
checks if the os meets the requirements to run installation
