Modified unix agent to get properly os on Darwin
This commit is contained in:
parent
4e840651be
commit
a3499d907e
|
@ -1562,6 +1562,9 @@ sub guess_os_version ($) {
|
||||||
# AIX
|
# AIX
|
||||||
} elsif ($os eq 'aix') {
|
} elsif ($os eq 'aix') {
|
||||||
$os_version = "$2.$1" if (`uname -rv` =~ /\s*(\d)\s+(\d)\s*/);
|
$os_version = "$2.$1" if (`uname -rv` =~ /\s*(\d)\s+(\d)\s*/);
|
||||||
|
# Darwin
|
||||||
|
} elsif ($os eq 'darwin') {
|
||||||
|
$os_version = `defaults read loginwindow SystemVersionStampAsString`;
|
||||||
# Windows
|
# Windows
|
||||||
} elsif ($os =~ /win/i) {
|
} elsif ($os =~ /win/i) {
|
||||||
$os_version = `ver`;
|
$os_version = `ver`;
|
||||||
|
|
Loading…
Reference in New Issue