rtrouton/rtrouton_scripts — pull request #15 by wdouglascampbell (2014-11-05 17:38:52+00:00)
Title: Original script does not handle multiple encrypted volumes properly

The original script was a very helpful start for me but in my case I have multiple volumes. Some are FileVault 2 encrypted and others aren't. So assuming that the pipe character indicates the currently running volumes volume was not right nor in the cases when I had more than 2 encrypted volumes was it limited to returning one volume. My script is based off of yours but handles the discover of what core storage volume, if any, is really associated with the current running volume.

You may not want to accept this pull request and just incorporate the ideas but this seemed the easiest way to share.