I'm embarassed to say, not sure how to have this "Check SIP status" EA to only proceed if OS version is 10.11*.
#!/bin/sh
if [ -e /usr/bin/csrutil ]; then
echo "<result>`csrutil status | awk '{ print $5 }' | sed 's/.$//'`</result>"
else
echo "<result>NotElCapitan</result>"
fi
Proceeding based on existence of /usr/bin/csrutil works but seems kludgy and convoluted.
How do we run the "if" statement to check for 10.11* before proceeding?
TIA,
Don



