Merge remote-tracking branch 'origin/main' into feature/remove_spif_step_details

This commit is contained in:
jasquat 2023-03-22 13:53:51 -04:00
commit 5ddde2aeaa
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ REALM_NAME=${2-spiffworkflow}
while read -r input_line; do while read -r input_line; do
if ! grep -qE '(^#|email)' <<<"$input_line" ; then if ! grep -qE '(^#|email)' <<<"$input_line" ; then
username=$(awk -F '@' '{print $1}' <<<"$input_line") 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 if [[ -z "$access_token" || "$access_token" == "null" ]]; then
>&2 echo "ERROR: failed to get access token for '$username'" >&2 echo "ERROR: failed to get access token for '$username'"
else else