Skip to content

Commit

Permalink
Added function to find the expected MD5 of a catalog tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
alz-phyglos committed Mar 13, 2019
1 parent b8eac8a commit 682a9c1
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bin/bandit_find
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,23 @@ bandit_find_first_catalog_for_bundle()
fi
done
}

bandit_find_catalog_md5()
{
local repository=$1
local catalog=$2
local pos=0
local md5=""

source $BANDIT_REPOSITORIES/${repository}/manifest

for cat in ${CATALOGS[*]}; do
if [ "${cat}" == "${catalog}" ]; then
md5=${CATALOGS_MD5[pos]}
break
fi
pos=pos+1
done

echo $md5
}

0 comments on commit 682a9c1

Please sign in to comment.