From be6d03b1bbdb4dab280f4ba5761e6cc84237d911 Mon Sep 17 00:00:00 2001
From: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Date: Tue, 11 Jun 2019 13:58:04 +0200
Subject: [PATCH] simpler md5sum check

---
 common.wdl | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/common.wdl b/common.wdl
index 2d099aa..d5db768 100644
--- a/common.wdl
+++ b/common.wdl
@@ -32,9 +32,10 @@ task CheckFileMD5 {
     }
 
     command {
+        bash -c '
         set -e -o pipefail
-        MD5SUM=$(md5sum ~{file} | cut -d ' ' -f 1)
-        [ "$MD5SUM" = '~{md5}' ]
+        echo "~{md5}  ~{file}" | md5sum -c
+        '
     }
 
     runtime {
-- 
GitLab