Skip to content

Commit

Permalink
Update main.nf
Browse files Browse the repository at this point in the history
  • Loading branch information
jfy133 authored Dec 13, 2024
1 parent e8e387e commit 1e4f5ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nf-core/untar/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ process UNTAR {
mkdir $prefix
## Ensures --strip-components only applied when top level of tar contents is a directory
## If just files or multiple directories, place all in prefix
## If just files or multiple directories, place all in prefix DUMMY IGNOREDUMMY IGNOREDUMMY IGNOREDUMMY IGNOREDUMMY IGNOREDUMMY IGNOREDUMMY IGNORE
if [[ \$(tar -taf ${archive} | grep -o -P "^.*?\\/" | uniq | wc -l) -eq 1 ]]; then
tar \\
-C $prefix --strip-components 1 \\
Expand Down

0 comments on commit 1e4f5ac

Please sign in to comment.