Skip to content
Snippets Groups Projects
Commit 26fa920b authored by Kevin Daudt's avatar Kevin Daudt :computer:
Browse files

main/aports-build: bail out if $arch is empty

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.

Because it's not known yet what caused the `abuild -A` invocation to
fail, we detect and log it and then bail out before it can do any
damage.

See alpine/infra/infra#10831
parent 277a752e
No related branches found
No related tags found
1 merge request!74149main/aports-build: bail out if $arch is empty
Pipeline #268382 passed
Loading
  • Why not simply replace $arch with ${arch:?}?

  • Author Owner

    This way we can detect it before actually doing anything and allows us to add extra logging in case it happens again.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment