I have the same problem and opened the script (/etc/profile.d/armbian-check-first-login.sh)
The function "read_password" at line 20 is the only one that is prefixed with "function", could that be the problem? I guess it is possible that the interpreter changed with an update and doesn't like this keyword?