I think source is bash specific. For sh you should use .
source
sh
.
https://gitlab.com/likebutter/butterbox-rpi/-/blob/1c302271a0af1a75e9e023755eba09f432c17c68/scripts/install-chat.sh#L10