summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/newins
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ebuild-helpers/newins')
-rwxr-xr-xbin/ebuild-helpers/newins10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/ebuild-helpers/newins b/bin/ebuild-helpers/newins
index 54245f3bc..20c68a1e2 100755
--- a/bin/ebuild-helpers/newins
+++ b/bin/ebuild-helpers/newins
@@ -7,7 +7,7 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
helper=${0##*/}
if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
- helpers_die "${helper}: Need two arguments, old file and new file"
+ __helpers_die "${helper}: Need two arguments, old file and new file"
exit 1
fi
@@ -24,14 +24,14 @@ rm -rf "${T}/$2"
if [[ ${stdin} ]] ; then
if [[ -t 0 ]] ; then
- helpers_die "!!! ${helper}: Input is from a terminal"
+ __helpers_die "!!! ${helper}: Input is from a terminal"
exit 1
fi
cat > "${T}/$2"
ret=$?
else
if [[ ! -e $1 ]] ; then
- helpers_die "!!! ${helper}: $1 does not exist"
+ __helpers_die "!!! ${helper}: $1 does not exist"
exit 1
fi
@@ -51,12 +51,12 @@ else
fi
if [[ ${ret} -ne 0 ]] ; then
- helpers_die "${0##*/} failed"
+ __helpers_die "${0##*/} failed"
exit ${ret}
fi
do${helper#new} "${T}/$2"
ret=$?
rm -rf "${T}/${2}"
-[[ $ret -ne 0 ]] && helpers_die "${helper} failed"
+[[ $ret -ne 0 ]] && __helpers_die "${helper} failed"
exit $ret