mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-19 03:57:55 -04:00
Allow waiting for multiple states (#11)
* Simplify `fetch_pcrs.sh` script * Allow waiting for multiple states Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
9df71da33f
commit
eb3411f2c1
7 changed files with 87 additions and 31 deletions
|
@ -6,21 +6,13 @@ trap 'terminate $?' ERR
|
|||
terminate() {
|
||||
echo "error: $1"
|
||||
constellation terminate
|
||||
popd || exit 1
|
||||
exit 1
|
||||
}
|
||||
|
||||
main() {
|
||||
if ! command -v constellation &> /dev/null
|
||||
then
|
||||
echo "constellation is not in path"
|
||||
exit 1
|
||||
fi
|
||||
if ! command -v go &> /dev/null
|
||||
then
|
||||
echo "go is not in path"
|
||||
exit 1
|
||||
fi
|
||||
command -v constellation > /dev/null
|
||||
command -v go > /dev/null
|
||||
command -v jq > /dev/null
|
||||
|
||||
mkdir -p ./pcrs
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue