File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 10
10
https://github.com/talkingmoose/Jamf-Scripts
11
11
12
12
Originally posted: August 13, 2018
13
+ Updated: April 7, 2019
13
14
14
15
Purpose: Display a dialog to end users with computer information when
15
16
run from within Jamf Pro Self Service. Useful for Help Desks to
@@ -154,7 +155,7 @@ operatingSystem="Operating System: $runCommand"
154
155
155
156
156
157
# Display battery cycle count
157
- runCommand=$( /usr/sbin/ioreg -r -c " AppleSmartBattery" | /usr/bin/grep -w " CycleCount" | /usr/bin/awk ' {print $3}' | /usr/bin/sed s/\" //g )
158
+ runCommand=$( /usr/sbin/ioreg -r -c " AppleSmartBattery" | /usr/bin/grep ' "CycleCount" = ' | /usr/bin/awk ' { print $3 }' | /usr/bin/sed s/\" //g )
158
159
batteryCycleCount=" Battery Cycle Count: $runCommand "
159
160
160
161
You can’t perform that action at this time.
0 commit comments