rtrouton/rtrouton_scripts — pull request #3 by rmanly (2012-10-01 22:58:55+00:00)
Title: Down to one if statement

By checking for both conditions using AND we can simplify so that 7 & 8 pass the test.

Checking for 9 and that extra code made me lol but it is ultimately clutter.

The output of spctl at this time is so simple we only need to get the second field. This is also clear enough that we don't need to assign $result with synonymous words