Skip to content

Commit

Permalink
adapt sha sums for older versions (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxscheurer committed Jan 12, 2022
1 parent 91fa19f commit 864eb47
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion adcc/testdata/0_download_testdata.sh
Expand Up @@ -116,8 +116,15 @@ download() {

download $(for file in ${DATAFILES[@]}; do echo $SOURCE/$file; done)

# check which files exist
while read line; do
list=($line)
fname=${list[1]}
[ -f "${fname}" ] && echo "$line" >> SHA256SUMS.filtered
done < SHA256SUMS
if which sha256sum &> /dev/null; then
sha256sum --ignore-missing -c SHA256SUMS || exit 1
sha256sum -c SHA256SUMS.filtered || exit 1
fi
rm SHA256SUMS.filtered

exit 0

0 comments on commit 864eb47

Please sign in to comment.