(This is all happening on an unsupported target, but nevertheless):
- The regex on line 958 isn't accepted by some bash shells (namely, the one running on Termux latest). Error says
trailing backslash (\) and likely refers to the \s used in the expression. Running sed -i 's/\\s/[[:space:]]/g' install-ut2004.sh fixes the issue (replacing \s with [[:space:]]).
- The precompiled
unshield throws unshield: cannot execute: required file not found. Installing the dependency natively (pkg install unshield) and removing .local/share/OldUnreal/UT2004/Installer/unshield fixes the issue.