Skip to content
Snippets Groups Projects
Commit 440489bc authored by ffinfo's avatar ffinfo
Browse files

Switch to file based md5

parent 85898c4d
No related branches found
No related tags found
1 merge request!61Switch to structs
...@@ -24,13 +24,14 @@ task AppendToStringArray { ...@@ -24,13 +24,14 @@ task AppendToStringArray {
task CheckFileMD5 { task CheckFileMD5 {
input { input {
File file File file
String MD5sum File md5
} }
command { command {
set -e -o pipefail set -e -o pipefail
MD5SUM=$(md5sum ~{file} | cut -d ' ' -f 1) MD5SUM=$(md5sum ~{file} | cut -d ' ' -f 1)
[ $MD5SUM = ~{MD5sum} ] MD5SUM_CORRECT=$(cat ~{md5} | | grep ~{basename(file)} | cut -d ' ' -f 1)
[ $MD5SUM = $MD5SUM_CORRECT ]
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment