Shell selection support via ENV
CDIST_LOCAL_SHELL for local scripts CDIST_REMOTE_SHELL for remote scripts
This commit is contained in:
parent
4bd6158260
commit
64f4cff3cb
4 changed files with 13 additions and 10 deletions
|
|
@ -45,10 +45,7 @@ class Shell(object):
|
|||
"""Select shell to execute, if not specified by user"""
|
||||
|
||||
if not self.shell:
|
||||
if 'SHELL' in os.environ:
|
||||
self.shell = os.environ['SHELL']
|
||||
else:
|
||||
self.shell = "/bin/sh"
|
||||
self.shell = os.environ.get('SHELL',"/bin/sh")
|
||||
|
||||
def _init_files_dirs(self):
|
||||
self.local.create_files_dirs()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue