diff --git a/modules/nf-core/custom/tabulartogseacls/main.nf b/modules/nf-core/custom/tabulartogseacls/main.nf index 57cc682809b..686421eb744 100644 --- a/modules/nf-core/custom/tabulartogseacls/main.nf +++ b/modules/nf-core/custom/tabulartogseacls/main.nf @@ -36,7 +36,7 @@ process CUSTOM_TABULARTOGSEACLS { cat <<-END_VERSIONS > versions.yml "${task.process}": - awk: " \$(awk --version | head -n 1 | awk '{print \$2}')" + awk: " \$(mawk -W version | head -n 1 | awk '{print \$2}')" END_VERSIONS """ @@ -45,7 +45,7 @@ process CUSTOM_TABULARTOGSEACLS { touch mock.cls cat <<-END_VERSIONS > versions.yml "${task.process}": - awk: " \$(awk --version | head -n 1 | awk '{print \$2}')" + awk: " \$(mawk -W version | head -n 1 | awk '{print \$2}')" END_VERSIONS """ diff --git a/modules/nf-core/custom/tabulartogseagct/main.nf b/modules/nf-core/custom/tabulartogseagct/main.nf index 0528c68f133..56fc890f935 100644 --- a/modules/nf-core/custom/tabulartogseagct/main.nf +++ b/modules/nf-core/custom/tabulartogseagct/main.nf @@ -32,7 +32,7 @@ process CUSTOM_TABULARTOGSEAGCT { cat <<-END_VERSIONS > versions.yml "${task.process}": - awk: " \$(awk --version | head -n 1 | awk '{print \$2}')" + awk: " \$(mawk -W version | head -n 1 | awk '{print \$2}')" END_VERSIONS """ @@ -41,7 +41,7 @@ process CUSTOM_TABULARTOGSEAGCT { touch mock.gct cat <<-END_VERSIONS > versions.yml "${task.process}": - awk: " \$(awk --version | head -n 1 | awk '{print \$2}')" + awk: " \$(mawk -W version | head -n 1 | awk '{print \$2}')" END_VERSIONS """ }