There were some changes I made in D4717 that appear to have broken running yarn react-native run-android when trying to build and run the Android app. I encountered this issue when fixing ENG-1485. The yarn react-native run-android command would fail with an error that went away once the changes in this diff were reverted.
I've also added the necessary ShellCheck directives to this file (for the time being, until I can figure out how to clean up this file correctly) so that the ShellCheck CI/GitHub Actions still passes. The Linear issue for fixing this file correctly is here.