Fix linux chmod+x scripts

This commit is contained in:
Doyle
2023-02-14 12:28:06 +11:00
parent 61d20e5262
commit ba4db25e5c
2 changed files with 22 additions and 11 deletions
+5 -2
View File
@@ -782,9 +782,12 @@ def run(user_app_list,
devenv_script_name = f"{devenv_script_name}.bat" if is_windows else f"{devenv_script_name}.sh"
devenv_script_path = pathlib.Path(install_dir, devenv_script_name)
lprint(f"Writing script to augment the environment with installed applications: {devenv_script_path}")
with open(devenv_script_path, 'w') as file:
file.write(devenv_script_buffer)
devenv_script_path.write_text(devenv_script_buffer)
if not is_windows:
subprocess.run(args=["chmod", "+x", devenv_script_path])
# Merge the install dictionaries, this dictionary contains
# (app label) -> [array of installed versions]