run_email() { [ -n "$my_email" ] || return 0
- my_username=$(echo "$my_email" | awk -F '@' '{print $1}')
This may be easier in sh: my_username=${my_email%@*}
Thanks, RenWen
compose_email curl -XPOST "${MAIL_HOST:-$LKP_SERVER}:${MAIL_PORT:-49000}/send_mail_text" -d "$data" } -- 2.23.0