msanders/cider — pull request #21 by keitaoouchi (2014-11-13 09:40:52+00:00)
Title: Fix command line tools checking.

In v1.1.4, cider always attempt to install command line tool, but it has already been installed.

```bash
% cider restore
==> Installing the Command Line Tools (expect a GUI popup):
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
Whoops! `/usr/bin/xcode-select --install` failed with code 1
```

In my environment(Python2.7.8),
`spawn(["/usr/bin/xcode-select", "-print-path"],
check_output=True,
debug=self.debug,
env=self.env)` returns string with newline(`'/Applications/Xcode.app/Contents/Developer\n'`) and `os.path.isdir` returns False with newline:

```bash
>>> os.path.isdir('/Applications/Xcode.app/Contents/Developer\n')
False
```