diff options
author | Sam James <sam@gentoo.org> | 2021-03-21 04:15:45 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2021-04-07 19:28:16 +0200 |
commit | 4fa2b0254e438bd01e4c23f901a6fe9b067f71a5 (patch) | |
tree | 39b286e5037dfd42707309aec96eeb9926a8abe9 /ebuild-writing/use-conditional-code/text.xml | |
parent | eclass-writing: use BDEPEND for hypothetical jmake example (diff) | |
download | devmanual-4fa2b0254e438bd01e4c23f901a6fe9b067f71a5.tar.gz devmanual-4fa2b0254e438bd01e4c23f901a6fe9b067f71a5.tar.bz2 devmanual-4fa2b0254e438bd01e4c23f901a6fe9b067f71a5.zip |
ebuild-writing/use-conditional-code: use || die in example
For the purposes of the example, it's best to keep using || die. Plus,
in this situation, it's likely we'd want to know if the big files were
renamed or similar.
Signed-off-by: Sam James <sam@gentoo.org>
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'ebuild-writing/use-conditional-code/text.xml')
-rw-r--r-- | ebuild-writing/use-conditional-code/text.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ebuild-writing/use-conditional-code/text.xml b/ebuild-writing/use-conditional-code/text.xml index 8db2d52..8725a40 100644 --- a/ebuild-writing/use-conditional-code/text.xml +++ b/ebuild-writing/use-conditional-code/text.xml @@ -28,7 +28,7 @@ statement. See <uri link="::ebuild-writing/error-handling/#die and Subshells"/>. # USE conditional blocks... if use livecd ; then # remove some extra files for a small livecd install - rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent} + rm -fr "${vimfiles}"/{compiler,doc,ftplugin,indent} || die fi # Inverse USE conditional blocks... |