diff --git a/endpoint.sh b/endpoint.sh index 5e7645b..e5781f5 100755 --- a/endpoint.sh +++ b/endpoint.sh @@ -25,12 +25,10 @@ main() { args+=("--dry-run") fi - echo Executing: "${cli_path}" apply "${args[@]}" + echo Executing: "${cli_path}" apply --auto-approve "${args[@]}" # The CLI uses an interactive prompt, so we need to pipe "yes" to it. - yes | "${cli_path}" apply "${args[@]}" - - exit $? + "${cli_path}" apply --auto-approve "${args[@]}" } main