Skip to content

Commit

Permalink
optimize local bind mount - bash escape
Browse files Browse the repository at this point in the history
  • Loading branch information
MontrealSergiy committed Jul 2, 2024
1 parent c253733 commit 85c95d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BrainPortal/app/models/cluster_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2388,7 +2388,7 @@ def singularity_commands(command_script)
# In the case of read-only input files, ro option is added

esc_local_dp_mountpoints = local_dp_storage_paths.inject("") do |sing_opts,path|
"#{sing_opts} -B #{path}#{":#{path}:ro" if file_access_symbol == :read}"
"#{sing_opts} -B #{path.bash_escape}#{":#{path.bash_escape}:ro" if file_access_symbol == :read}"
end

# (5) Overlays defined in the ToolConfig
Expand Down

0 comments on commit 85c95d6

Please sign in to comment.