Upgrade Failed... line 115 column 9 -e LANG=en_US.UTF-8

I think it’s the replace stanza at the end. It’s indentation is different from the one above.

Have you edited this since the last upgrade?