Funny I came across a similar error today on a RP64 with a build of Focal desktop 20.08-dev that I compiled a few days ago. I updated via APT this morning.
uname -a
Linux xxxx 5.8.5-rockchip64 #trunk SMP PREEMPT Tue Sep 1 14:46:03 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux
Here are my symptoms:
$ sudo useradd -m testee
$ sudo passwd testee
New password:
Retype new password:
passwd: password updated successfully
$ su - testee
Password:
-sh: 20: /etc/profile.d/armbian-check-first-login.sh: Syntax error: "(" unexpected
My own user account (created when the system first booted and initialized) is fine. It's only on new accounts the issue exists. i am not sure when this issue manifested itself. It was only today that I tried to create a new user.
I offer this as some additional data - if it's not relevant to your issue then I apologize