feat(edge-connect-delete): handle the case when the instance is already deleted - continue and try to delete th eapp

This commit is contained in:
Stephan Lo 2025-10-15 14:15:40 +02:00
parent f6cbb68550
commit e477909e70

View file

@ -24,7 +24,8 @@ main() {
echo Executing: "${cli_path}" instance delete "${args_instance_delete[@]}"
# The CLI uses an interactive prompt, so we need to pipe "yes" to it.
"${cli_path}" instance delete "${args_instance_delete[@]}"
# we ignore an error by ||true in case the instance does not exist, so that we still delete the app
"${cli_path}" instance delete "${args_instance_delete[@]}" || true
local -a args_app_delete
args_app_delete=("--name" "${INPUT_NAME}" "--version" "${INPUT_APPVERSION}" "--org" "${INPUT_ORG}" "--region" "${INPUT_REGION}")