Modified unix agent to get properly os on Darwin

This commit is contained in:
fermin831 2017-09-18 10:24:27 +02:00 committed by fermin
parent 4e840651be
commit a3499d907e
1 changed files with 3 additions and 0 deletions

View File

@ -1562,6 +1562,9 @@ sub guess_os_version ($) {
# AIX
} elsif ($os eq 'aix') {
$os_version = "$2.$1" if (`uname -rv` =~ /\s*(\d)\s+(\d)\s*/);
# Darwin
} elsif ($os eq 'darwin') {
$os_version = `defaults read loginwindow SystemVersionStampAsString`;
# Windows
} elsif ($os =~ /win/i) {
$os_version = `ver`;