Commit a977b75a authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: $SHELL might not be set in non-interactive envs

parent 432285db
......@@ -127,7 +127,7 @@ class Context(object):
"""
self.args = args
self.shell = op.basename(os.environ['SHELL']).lower()
self.shell = op.basename(os.environ.get('SHELL', 'sh').lower()
# These attributes are updated on-demand via
# the property accessors defined below, or all
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment