Skip to content

Commit

Permalink
quoting to account for spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sorelfitzgibbon committed Sep 29, 2023
1 parent c1b4f46 commit bb5d60a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/assert_vcf.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
function md5_vcf {
zcat $1 | grep -v '^##' | md5sum | cut -f 1 -d ' '
zcat "$1" | grep -v '^##' | md5sum | cut -f 1 -d ' '
}

received=$(md5_vcf $1)
expected=$(md5_vcf $2)
received=$(md5_vcf "$1")
expected=$(md5_vcf "$2")

if [ "$received" == "$expected" ]; then
echo "VCF files are equal"
Expand Down

0 comments on commit bb5d60a

Please sign in to comment.