From 8b78001c9ed98b4bed17b49c9e9760f9cef44a86 Mon Sep 17 00:00:00 2001 From: Ander Punnar <4ND3R@users.noreply.github.com> Date: Fri, 29 Sep 2017 15:44:44 +0300 Subject: [PATCH] fix running scripts with execute bit (#583) --- cdist/exec/local.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/exec/local.py b/cdist/exec/local.py index e5771076..8b54a142 100644 --- a/cdist/exec/local.py +++ b/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',