/opt/pihole/updatecheck.sh: line 42: /etc/pihole/setupVars.conf: No such file or directory

To implement the check is easy - the question is why is it failing in the first place?

updatecheck is called during installation here:

However, setupVars.conf is written earlier: