Skip to content

Option to make wrapper script executable for others #512

@gq1

Description

@gq1

Currently the wrapper script is only executable for the owner.
-rwxr--r-- 1 tolsoft toladmin 478 Mar 14 19:57 samtools

Can we have an option to make them executable for others?
I made the following changes:

diff --git a/shpc/utils/fileio.py b/shpc/utils/fileio.py
index b8c5bb30f..061e3f424 100644
--- a/shpc/utils/fileio.py
+++ b/shpc/utils/fileio.py
@@ -123,7 +123,7 @@ def write_file(filename, content, mode="w", exec=False):
         filey.writelines(content)
     if exec:
         st = os.stat(filename)
-        os.chmod(filename, st.st_mode | stat.S_IEXEC)
+        os.chmod(filename, st.st_mode | stat.S_IXOTH)
     return filename

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions