diff --git a/workflow/scripts/bdbag_fetch.sh b/workflow/scripts/bdbag_fetch.sh index c546d6f70c72effdd6654e6a160f42a620a07eee..c34dc756d0cc5a47382fb9f96267e378c19ae79a 100644 --- a/workflow/scripts/bdbag_fetch.sh +++ b/workflow/scripts/bdbag_fetch.sh @@ -3,7 +3,7 @@ bdbag --materialize ${1} --debug validate="" bdbag --validate full ${1} 2> validate.txt -validate=$(tail -n validate.txt | grep -o 'is valid') +validate=$(tail -n1 validate.txt | grep -o 'is valid') if [ "${validate}" != "is valid" ] then n=0