krispayne / CIS-Settings

CIS settings bootstrapper for Mac
MIT License
32 stars 5 forks source link

TODO: 2.8 Pair the remote control infrared receiver if enabled #13

Open krispayne opened 8 years ago

krispayne commented 8 years ago
Getting errors in STDOUT.
./Yosemite_CIS.sh: line 507: [[: Jun 22, 2016, 11:53:31 AM CIS_SETTINGS[74183]:   No IR Receiver present.
Jun 22 11:53:31 kvoleon CIS_SETTINGS[74183]:   No IR Receiver present.: syntax error in expression (error token is "22, 2016, 11:53:31 AM CIS_SETTINGS[74183]:   No IR Receiver present.
Jun 22 11:53:31 kvoleon CIS_SETTINGS[74183]:   No IR Receiver present.")
./Yosemite_CIS.sh: line 509: [[: Jun 22, 2016, 11:53:31 AM CIS_SETTINGS[74183]:   No IR Receiver present.
Jun 22 11:53:31 kvoleon CIS_SETTINGS[74183]:   No IR Receiver present.: syntax error in expression (error token is "22, 2016, 11:53:31 AM CIS_SETTINGS[74183]:   No IR Receiver present.
Jun 22 11:53:31 kvoleon CIS_SETTINGS[74183]:   No IR Receiver present.")

code

krispayne commented 8 years ago

These errors are because system_profiler is searching the system.log and this script has already been run. Need to find a way to grep/sed out the system.log output