fix running scripts with execute bit (#583)

This commit is contained in:
Ander Punnar 2017-09-29 15:44:44 +03:00 committed by Darko Poljak
parent 3198d8e76c
commit 8b78001c9e
1 changed files with 1 additions and 1 deletions

View File

@ -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',