Skip to content

Commit

Permalink
switches having a symlink of the script to copying the script for mul…
Browse files Browse the repository at this point in the history
…ti host usage
  • Loading branch information
FrederickDeny committed Mar 27, 2024
1 parent 7473e8e commit 9ffc316
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion e4s_cl/cf/containers/barebones.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,12 @@ def bind_file(self,
file_to_bind = Path(path)
file_basename = file_to_bind.name
if dest is not None:
create_symlink(file_to_bind, Path(dest))
dest = Path(dest)
if dest.name == 'barebones_script':
dest.write_text(file_to_bind.read_text())
os.chmod(dest, 0o755)
else:
create_symlink(file_to_bind, Path(dest))
else:
create_symlink(file_to_bind, Path(BAREBONES_LIBRARY_DIR) / file_basename)

Expand Down

0 comments on commit 9ffc316

Please sign in to comment.