diff --git a/minimap2.wdl b/minimap2.wdl
index f01c01b34d74228df7a779a50db7d49705fba941..d6fa35f67b1306b6fe6dab46264f19631bac8dbd 100644
--- a/minimap2.wdl
+++ b/minimap2.wdl
@@ -36,7 +36,6 @@ task Indexing {
     }
 
     command {
-        set -e pipefail
         mkdir -p $(dirname ~{outputPrefix})
         minimap2 \
         ~{true="-H" false="" useHomopolymerCompressedKmer} \
@@ -93,7 +92,6 @@ task Mapping {
     }
 
     command {
-        set -e pipefail
         mkdir -p $(dirname ~{outputPrefix})
         minimap2 \
         ~{"-x " + presetOption} \
@@ -105,7 +103,7 @@ task Mapping {
         ~{"-A " + matchingScore} \
         ~{"-B " + mismatchPenalty} \
         ~{"-u " + howToFindGTAG} \
-        ~{true="--secondary=yes" false="--secondary=no" secondaryAlignment} \
+        --secondary=~{true="yes" false="no" secondaryAlignment} \
         ~{"-o " + outputPrefix} \
         ~{"-t " + cores} \
         ~{referenceFile} \