diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-08-18 23:31:49 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-08-18 23:31:49 -0700 |
commit | 0913983443dd9cca07705ca8381c2e5c38b0de73 (patch) | |
tree | c8de4320424ad75cb84f0836c5e0213f8945eb61 /bin/ebuild-helpers/dohtml | |
parent | 214ba4d809e352cadde48dfc9f8b203cb1bd21a6 (diff) | |
download | portage-0913983443dd9cca07705ca8381c2e5c38b0de73.tar.gz portage-0913983443dd9cca07705ca8381c2e5c38b0de73.tar.bz2 portage-0913983443dd9cca07705ca8381c2e5c38b0de73.zip |
* In helpers_die arguments, display ${0##*/} instead of $0 since $0
is needlessly long.
* When calling helpers_die from a function, use ${FUNCNAME[0]} in
arguments instead of $0.
Diffstat (limited to 'bin/ebuild-helpers/dohtml')
-rwxr-xr-x | bin/ebuild-helpers/dohtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml index cb29dc3f3..630629a4b 100755 --- a/bin/ebuild-helpers/dohtml +++ b/bin/ebuild-helpers/dohtml @@ -10,5 +10,5 @@ PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \ "${PORTAGE_PYTHON:-/usr/bin/python}" "$PORTAGE_BIN_PATH/dohtml.py" "$@" ret=$? -[[ $ret -ne 0 ]] && helpers_die "$0 failed" +[[ $ret -ne 0 ]] && helpers_die "${0##*/} failed" exit $ret |