Skip to content

Instantly share code, notes, and snippets.

@smashism
Created December 16, 2016 15:51
Show Gist options
  • Save smashism/0d7d940afa595693c8b4a651523a522a to your computer and use it in GitHub Desktop.
Save smashism/0d7d940afa595693c8b4a651523a522a to your computer and use it in GitHub Desktop.
#!/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 (drkausalik@gmail.com)
# 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