#!/bin/bash export PATH=$PATH:/usr/bin/local cname=`scutil --get ComputerName` echo "" echo "Script:" echo "presleep_quitapps" echo "------------------------------------------------------------------------" echo "Machine:" $cname echo `date` echo "" # machine specific: Angus && Petula, turn off HomeKit stuff if [[ $cname = "Angus" || $cname = "Petula" ]]; then echo "** Machine Specific: $cname" echo $'\t' "this works test" fi echo "------------------------------------------------------------------------" echo `date`