Skip to content
Snippets Groups Projects
Commit e3439525 authored by Cats's avatar Cats
Browse files

add CheckFileMD5

parent f24500d1
No related branches found
No related tags found
1 merge request!32style changes and adds task to check file md5
This commit is part of merge request !32. Comments created here will be created in the context of that merge request.
...@@ -16,6 +16,18 @@ task AppendToStringArray { ...@@ -16,6 +16,18 @@ task AppendToStringArray {
} }
} }
# This task will fail if the MD5sum doesn't match the file.
task CheckFileMD5 {
File file
String MD5sum
command {
set -e -o pipefail
MD5SUM=$(md5sum ${file} | cut -d ' ' -f 1)
[ $MD5SUM = ${MD5sum} ]
}
}
task ConcatenateTextFiles { task ConcatenateTextFiles {
Array[File] fileList Array[File] fileList
String combinedFilePath String combinedFilePath
......
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