Skip to content

Commit 25113f4

Browse files
authored
fixing file creation permission for wrapper scripts to close #512 (#513)
* fixing file creation permission for wrapper scripts to close #512 * run black updated version
1 parent 9bce124 commit 25113f4

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and **Merged pull requests**. Critical items to know are:
1414
The versions coincide with releases on pip. Only major versions will be released as tags on Github.
1515

1616
## [0.0.x](https://github.com/singularityhub/singularity-hpc/tree/main) (0.0.x)
17+
- wrapper script generation permissions error (0.0.47)
1718
- fixing but with stream command repeating output (0.0.46)
1819
- Adding support for wrapper scripts for global and container.yaml (0.0.45)
1920
- Lua and tcl module file bug fixes for shell functions and aliases (0.0.44)

shpc/utils/fileio.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ def write_file(filename, content, mode="w", exec=False):
123123
filey.writelines(content)
124124
if exec:
125125
st = os.stat(filename)
126-
os.chmod(filename, st.st_mode | stat.S_IEXEC)
126+
127+
# Execute / search permissions for the user and others
128+
os.chmod(filename, st.st_mode | stat.S_IEXEC | stat.S_IXGRP | stat.S_IXOTH)
127129
return filename
128130

129131

shpc/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__copyright__ = "Copyright 2021-2022, Vanessa Sochat"
33
__license__ = "MPL 2.0"
44

5-
__version__ = "0.0.46"
5+
__version__ = "0.0.47"
66
AUTHOR = "Vanessa Sochat"
77
NAME = "singularity-hpc"
88
PACKAGE_URL = "https://github.com/singularityhub/singularity-hpc"

0 commit comments

Comments
 (0)