Regardless of whether or not deploy-site is installed on OS X, the check
strstr(shell_exec('which deploy-site'), "deploy-site")
will come back positive. If OS X can't find it, it will return "deploy-site not found", unlike Ubuntu, which would return nothing.
Comments
Comment #1
shrop commentedFixed with this commit. I added a forward slash in the search string so the which command in OS X would not result in a false positive.
I tested this in OS X and it appears to work as desired.