I am having issues with the pre-build script on appcenter. Appcenter uses bash for the pre-build scripts. I want to change "qa.api" to "beta.api" in my api.js file.
I tried the following but it does not seem to work:
#!/usr/bin/env bash
if [ "$APPCENTER_BRANCH" != "master" ];
then
cd App/Services/
echo "changing QA API to Production API (beta)"
sed -i 's/qa.api/beta.api/g' Api.js
fi
So I simplified it but it still does not work:
#!/usr/bin/env bash
cd App/Services/
sed -i 's/qa.api/beta.api/g' Api.js`
Any ideas?