More concise shell grain

Thanks to @SEJeff for the idea.
This commit is contained in:
Jeff Hutchins 2012-05-11 07:28:47 -06:00
parent a7e97f4eb8
commit 85ac28c1ea

View File

@ -6,8 +6,4 @@ def shell():
'''
# Provides:
# shell
ret = {'shell': '/bin/sh'}
if 'SHELL' in os.environ:
ret['shell'] = os.environ['SHELL']
return ret
return {'shell': os.environ.get('SHELL', '/bin/sh'}