-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(build): Allow update-apps.sh script to work with non-master branches #47351
Conversation
Signed-off-by: provokateurin <kate@provokateurin.de>
Fails with sh:
Fails with french locale:
(because |
Expected to fail, the shebang clearly says it needs bash.
Ugh I didn't know and think about that. Not sure how to make that work. I tried a few alternatives, but none of them worked for me at all. |
For the later we could do a stupid |
I think in that script just |
@come-nc can you try that and if it works make a PR? |
Instead of using export the env variable could just be applied to the git command that is problematic. |
Sure this also works :) |
Yeah it would be weird to do that, but you mentioned it so we can also just prevent it :D |
Summary
The script only worked for apps which use master as their main branch.
This change also makes the script easier to read and also catch errors properly.
Checklist