Skip to content

Commit

Permalink
Quote absolute paths used in directory shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
scwatts committed Jun 4, 2024
1 parent 9abc114 commit 85765b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/local/svprep/assemble/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ process GRIDSS_ASSEMBLE {
# NOTE(SW): ideally we would get the relative path using the --relative-to but this is only
# supported for GNU realpath and fails for others such as BusyBox, which is used in Biocontainers
symlinkpath=\$(realpath \${filepath_src})
ln -s \${symlinkpath} \${filepath_dst};
ln -s "\${symlinkpath}" \${filepath_dst};
done
if [[ -L "\${src##*/}" ]]; then
rm "\${src}"
Expand Down
2 changes: 1 addition & 1 deletion modules/local/svprep/call/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ process GRIDSS_CALL {
# NOTE(SW): ideally we would get the relative path using the --relative-to but this is only
# supported for GNU realpath and fails for others such as BusyBox, which is used in Biocontainers
symlinkpath=\$(realpath \${filepath_src})
ln -s \${symlinkpath} \${filepath_dst};
ln -s "\${symlinkpath}" \${filepath_dst};
done
if [[ -L "\${src##*/}" ]]; then
rm "\${src}"
Expand Down

0 comments on commit 85765b1

Please sign in to comment.