games-misc/xcowsay: add || die to rm call. D -> ED
authorAaron Bauman <bman@gentoo.org>
Mon, 28 May 2018 22:23:21 +0000 (18:23 -0400)
committerAaron Bauman <bman@gentoo.org>
Mon, 28 May 2018 23:02:02 +0000 (19:02 -0400)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

games-misc/xcowsay/xcowsay-1.3.ebuild

index baff2aca52abc364e0494bde05a6721d854ee27a..23b83fa32d22c14a3d30a0afb60181a96f229904 100644 (file)
@@ -30,6 +30,6 @@ src_configure() {
 src_install() {
        default
        if ! use fortune; then
-               rm -f "${D}"/usr/bin/xcowfortune
+               rm -f "${ED}"/usr/bin/xcowfortune || die "Removal of xcowfortune failed"
        fi
 }