Adding error message when Windows OS is detected
This commit is contained in:
parent
448df588d2
commit
02c952c03c
1 changed files with 7 additions and 0 deletions
|
@ -895,6 +895,13 @@ sub compare_tuner_version {
|
|||
# Checks to see if a MySQL login is possible
|
||||
my ( $mysqllogin, $doremote, $remotestring, $mysqlcmd, $mysqladmincmd );
|
||||
|
||||
my $osname = $^O;
|
||||
if( $osname eq 'MSWin32' ) {
|
||||
eval { require Win32; } or last;
|
||||
$osname = Win32::GetOSName();
|
||||
#print "\nOS Name: $osname";
|
||||
die "Windows($osname) is not supported.";
|
||||
}
|
||||
sub mysql_setup {
|
||||
$doremote = 0;
|
||||
$remotestring = '';
|
||||
|
|
Loading…
Reference in a new issue