commit: 4fa2b0254e438bd01e4c23f901a6fe9b067f71a5
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 21 04:15:45 2021 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Apr 7 17:28:16 2021 +0000
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=4fa2b025
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 <AT> gentoo.org>
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
ebuild-writing/use-conditional-code/text.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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...