From bb5d60a29f01d389128c639291f9c59542bc13ba Mon Sep 17 00:00:00 2001 From: Sorel Fitz-Gibbon Date: Fri, 29 Sep 2023 13:27:54 -0700 Subject: [PATCH] quoting to account for spaces --- test/assert_vcf.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/assert_vcf.sh b/test/assert_vcf.sh index b950ca6d..58c460f5 100755 --- a/test/assert_vcf.sh +++ b/test/assert_vcf.sh @@ -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"