Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 51209c0

Browse files
authored
Update execution permissions for bootstrap.sh (#21)
2 parents ef65b6f + 52faea7 commit 51209c0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/PythonProjectBootstrapper/package/hooks/post_gen_project.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@
160160
}
161161

162162

163+
# ----------------------------------------------------------------------
164+
def UpdateBootstrapExecutionPermissions():
165+
bootstrap_path = Path("./Bootstrap.sh")
166+
167+
PathEx.EnsureFile(bootstrap_path)
168+
status = bootstrap_path.stat()
169+
bootstrap_path.chmod(status.st_mode | 0o700)
170+
171+
163172
# ----------------------------------------------------------------------
164173
def UpdateLicenseFile():
165174
this_dir = Path.cwd()
@@ -232,5 +241,6 @@ def FinalPrompt():
232241
# ----------------------------------------------------------------------
233242
# ----------------------------------------------------------------------
234243
UpdateLicenseFile()
244+
UpdateBootstrapExecutionPermissions()
235245
DisplayPrompts()
236246
FinalPrompt()

0 commit comments

Comments
 (0)