Skip to content

Commit

Permalink
Merge pull request #32 from lrauschning/master
Browse files Browse the repository at this point in the history
remove unnecessary permission changes
  • Loading branch information
lrauschning authored Mar 5, 2024
2 parents 2852dd9 + 78421b4 commit aba572d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion magus_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def retrieve_packaged_binary(p):
for executable in glob(os.path.dirname(p) + "/**/*",recursive=True):
if not os.path.isfile(executable):
continue
os.chmod(executable, os.stat(p).st_mode | stat.S_IEXEC)
# set to executable if not set already
# this will fail in containerized environments!
if not os.stat(executable) & stat.S_IEXEC:
os.chmod(executable, os.stat(executable).st_mode | stat.S_IEXEC)
return p
else:
return None
Expand Down

0 comments on commit aba572d

Please sign in to comment.