Skip to content

Commit

Permalink
flatpak-manifest(5): If one command fails, the whole build fails
Browse files Browse the repository at this point in the history
Documenting this makes it more obvious that it's valid to write

    - foo
    - bar
    - baz

and unnecessary to combine those commands into
`foo && bar && baz` to get sensible error behaviour.

Co-authored-by: Simon McVittie <[email protected]>
  • Loading branch information
2 people authored and TingPing committed May 23, 2024
1 parent 4b8e9ce commit 61e3a2e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/flatpak-manifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,8 @@
<listitem><para>An array of commands to run during build (between make and make install if those are used).
This is primarily useful when using the "simple" buildsystem.
Each command is run in <literal>/bin/sh -c</literal>, so it can use standard POSIX shell syntax such as piping output.
If any individual entry in the array fails, then the whole build process will fail,
similar to commands in a <citerefentry><refentrytitle>make</refentrytitle><manvolnum>1</manvolnum></citerefentry> recipe.
</para></listitem>
</varlistentry>
<varlistentry>
Expand Down

0 comments on commit 61e3a2e

Please sign in to comment.