fix running scripts with execute bit (#583)
This commit is contained in:
parent
3198d8e76c
commit
8b78001c9e
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ class Local(object):
|
|||
"""
|
||||
if os.access(script, os.X_OK):
|
||||
self.log.debug('%s is executable, running it', script)
|
||||
command = [script]
|
||||
command = [os.path.realpath(script)]
|
||||
else:
|
||||
command = [self.configuration.get('local_shell', "/bin/sh"), "-e"]
|
||||
self.log.debug('%s is NOT executable, running it with %s',
|
||||
|
|
Loading…
Reference in a new issue