fix running scripts with execute bit (#583)

remotes/origin/os_explorer_devuan_fix
Ander Punnar 7 years ago committed by Darko Poljak
parent 3198d8e76c
commit 8b78001c9e
  1. 2
      cdist/exec/local.py

@ -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…
Cancel
Save