mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-19 04:24:39 -04:00
Fix shellcheck warnings
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
eb66767a62
commit
7aa7492474
33 changed files with 328 additions and 199 deletions
|
@ -1,21 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
shopt -s inherit_errexit
|
||||
|
||||
LATEST_AZURE_RUNS=$(gh run list -R edgelesssys/constellation -w 'e2e Test Azure' --json databaseId -q '.[].databaseId')
|
||||
echo $LATEST_AZURE_RUNS
|
||||
for RUN_ID in $LATEST_AZURE_RUNS
|
||||
echo "${LATEST_AZURE_RUNS}"
|
||||
for RUN_ID in ${LATEST_AZURE_RUNS}
|
||||
do
|
||||
# Might fail, because no state was written, because e2e pipeline failed early
|
||||
# Or, because state was downloaded by earlier run of this script
|
||||
gh run download ${RUN_ID} -R edgelesssys/constellation -n constellation-state.json -D azure/${RUN_ID} || true
|
||||
gh run download "${RUN_ID}" -R edgelesssys/constellation -n constellation-state.json -D azure/"${RUN_ID}" || true
|
||||
done
|
||||
|
||||
LATEST_GCP_RUNS=$(gh run list -R edgelesssys/constellation -w 'e2e Test GCP' --json databaseId -q '.[].databaseId')
|
||||
echo $LATEST_GCP_RUNS
|
||||
for RUN_ID in $LATEST_GCP_RUNS
|
||||
echo "${LATEST_GCP_RUNS}"
|
||||
for RUN_ID in ${LATEST_GCP_RUNS}
|
||||
do
|
||||
# Might fail, because no state was written, because e2e pipeline failed early
|
||||
# Or, because state was downloaded by earlier run of this script
|
||||
gh run download ${RUN_ID} -R edgelesssys/constellation -n constellation-state.json -D gcp/${RUN_ID} || true
|
||||
gh run download "${RUN_ID}" -R edgelesssys/constellation -n constellation-state.json -D gcp/"${RUN_ID}" || true
|
||||
done
|
||||
|
|
|
@ -1,13 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euo pipefail
|
||||
shopt -s inherit_errexit
|
||||
|
||||
TO_DELETE=$(grep -lr "\"uid\": \"${1}\"" . || true)
|
||||
if [ -z "$TO_DELETE" ]
|
||||
if [[ -z "${TO_DELETE}" ]]
|
||||
then
|
||||
printf "Unable to find '${1}'\n"
|
||||
printf "Unable to find '%s'\n" "${1}"
|
||||
else
|
||||
printf "Statefile found. You should run:\n\n"
|
||||
printf "cd %s\n" $TO_DELETE
|
||||
printf "cd %s\n" "${TO_DELETE}"
|
||||
printf "constellation terminate --yes\n\n"
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue