From 946adef841f461fd5e3a477e330e5294ade479d9 Mon Sep 17 00:00:00 2001 From: Aaron Walker Date: Sun, 31 Oct 2004 12:59:10 +0000 Subject: [PATCH] die if newins fails --- eclass/bash-completion.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/bash-completion.eclass b/eclass/bash-completion.eclass index aa41209febea..95758eb2d47d 100644 --- a/eclass/bash-completion.eclass +++ b/eclass/bash-completion.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.3 2004/10/30 23:13:44 ka0ttic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/bash-completion.eclass,v 1.4 2004/10/31 12:59:10 ka0ttic Exp $ # # Simple eclass that provides an interface for installing # contributed (ie not included in bash-completion proper) @@ -27,6 +27,6 @@ dobashcompletion() { [ -z "$1" ] && die "usage: dobashcompletion " if useq bash-completion ; then insinto /usr/share/bash-completion - newins "$1" "${2:-${1##*/}}" + newins "$1" "${2:-${1##*/}}" || die "Failed to install $1" fi } -- 2.26.2