Created
December 16, 2016 15:51
-
-
Save smashism/0d7d940afa595693c8b4a651523a522a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### | |
# | |
# Name: type_TouchBar.sh | |
# Description: Check for presense of Touch Bar Agent to see if a machine has | |
# a Touch Bar or not. Results can then be used to create a smart | |
# group based on type. | |
# Author: Emily Kausalik ([email protected]) | |
# Created: 2016-12-15 | |
# Last Modified: 2016-12-15 | |
# | |
### | |
if pgrep "TouchBarAgent"; then | |
echo "<result>Touch Bar Mac.</result>" | |
else | |
echo "<result>Old boring non-Touch Bar Mac.</result>" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment