From 2fe0300b81bc856a354cec1a18a87f77de61394d Mon Sep 17 00:00:00 2001 From: jasquat Date: Wed, 22 Mar 2023 12:22:27 -0400 Subject: [PATCH] do not fail if cannot get a token for a user in login w/ burnettk --- spiffworkflow-backend/bin/login_with_users | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spiffworkflow-backend/bin/login_with_users b/spiffworkflow-backend/bin/login_with_users index 3d73e036d..167c57f9e 100755 --- a/spiffworkflow-backend/bin/login_with_users +++ b/spiffworkflow-backend/bin/login_with_users @@ -28,7 +28,7 @@ REALM_NAME=${2-spiffworkflow} while read -r input_line; do if ! grep -qE '(^#|email)' <<<"$input_line" ; then username=$(awk -F '@' '{print $1}' <<<"$input_line") - access_token=$("${script_dir}/get_token" "$username" "$username" "$REALM_NAME") + access_token=$("${script_dir}/get_token" "$username" "$username" "$REALM_NAME" || echo '') if [[ -z "$access_token" || "$access_token" == "null" ]]; then >&2 echo "ERROR: failed to get access token for '$username'" else