diff --git a/endpoint.sh b/endpoint.sh index 954c131..4cc78ba 100755 --- a/endpoint.sh +++ b/endpoint.sh @@ -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}")