We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 097dec4 commit f90a0d0Copy full SHA for f90a0d0
inventoryManager.sh
@@ -69,7 +69,7 @@ mailto=""
69
tempWarrantyPage=/tmp/appleWarrantyPage
70
71
# OS Version
72
-osVersion="$(/usr/bin/sw_vers | /usr/bin/grep ProductVersion | /usr/bin/cut -d. -f2)"
+osVersion="$(/usr/bin/sw_vers -productVersion | /usr/bin/cut -d. -f2)"
73
74
# Find the model ID (ie "MacPro4,1")
75
modelID="$(/usr/sbin/system_profiler SPHardwareDataType | /usr/bin/grep Ident | /usr/bin/cut -d":" -f2 | cut -d" " -f2)"
0 commit comments