lit: Add another place to look for bash.

llvm-svn: 104189
This commit is contained in:
Daniel Dunbar 2010-05-19 23:56:09 +00:00
parent 772b731ca5
commit 1c27a3b79d

View File

@ -71,7 +71,7 @@ class LitConfig:
self.bashPath = Util.which('bash', os.pathsep.join(self.path))
if self.bashPath is None:
# Check some known paths.
for path in ('/bin/bash', '/usr/bin/bash'):
for path in ('/bin/bash', '/usr/bin/bash', '/usr/local/bin/bash'):
if os.path.exists(path):
self.bashPath = path
break