"If '$arch' is empty, the `rsync` invocation to upload the packages for the current repo targets the wrong directory, resulting in the repositories for all other architectures to be removed."
bash reaps the souls of yet another ops team following an outage entirely prevented in literally any other language.
https://gitlab.alpinelinux.org/alpine/aports/-/commit/26fa920b8980f36bbd12dd503a5533a1b577aeb7
@kline Or just… have your shell-based language use set -eu (plus dialect-specific extensions like pipefail) like literally every shell scripting guide recommends. If it breaks existing package scripts then those packages probably shouldn't have been published in the first place
@nytpu you shouldn't need to take positive action to prevent your language system from punishing you for simple mistakes.
My car doesn't explode if I stall it.
The fact that this keeps happening is evidence in itself that the available "solutions" aren't effective
@lanodan @nytpu if everyday you stub your toe on a step that's a bit too high, you can put up a sign saying "wonky step" or you can fix the stairs.
It's been a long time where we've put various signs, mitigations, linters, and we're still stumbling on a badly made step.
We need to fix/replace. Yes, it'll be hard work and a lot to do, but better now than in the future when there's even more that needs done.