mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
More concise shell grain
Thanks to @SEJeff for the idea.
This commit is contained in:
parent
a7e97f4eb8
commit
85ac28c1ea
@ -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'}
|
||||
|
Loading…
Reference in New Issue
Block a user