diff --git a/code-examples/migrate-to-ory/0-get-auth0-user-data.sh b/code-examples/migrate-to-ory/0-get-auth0-user-data.sh index 300542181..d133b6f97 100644 --- a/code-examples/migrate-to-ory/0-get-auth0-user-data.sh +++ b/code-examples/migrate-to-ory/0-get-auth0-user-data.sh @@ -36,7 +36,7 @@ poll_job_status() { state=$(echo $jobstatus | jq -r ".status") echo "jobstate: ${state}" - if [[ $state == "pending" ]]; then + if [[ $state == "pending" ]] || [[ $state == "processing" ]]; then echo "${jobstatus}" | jq ".time_left_seconds" | read timeleft if [ -z $timeleft]; then sleep 1