mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-28 00:07:06 -05:00
7aa7492474
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
15 lines
332 B
Bash
Executable File
15 lines
332 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
shopt -s inherit_errexit
|
|
|
|
TO_DELETE=$(grep -lr "\"uid\": \"${1}\"" . || true)
|
|
if [[ -z "${TO_DELETE}" ]]
|
|
then
|
|
printf "Unable to find '%s'\n" "${1}"
|
|
else
|
|
printf "Statefile found. You should run:\n\n"
|
|
printf "cd %s\n" "${TO_DELETE}"
|
|
printf "constellation terminate --yes\n\n"
|
|
fi
|