constellation/hack/fetch-broken-e2e/find.sh

14 lines
288 B
Bash
Raw Normal View History

2022-10-10 08:21:17 -04:00
#!/usr/bin/env bash
set -euo pipefail
TO_DELETE=$(grep -lr "\"uid\": \"${1}\"" . || true)
if [ -z "$TO_DELETE" ]
then
printf "Unable to find '${1}'\n"
else
printf "Statefile found. You should run:\n\n"
printf "cd %s\n" $TO_DELETE
printf "constellation terminate\n\n"
fi