aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2005-05-15 00:35:50 +0000
committerAaron Walker <ka0ttic@gentoo.org>2005-05-15 00:35:50 +0000
commit4d23a57b2d4f2117bfc0307931455fbd6a479256 (patch)
treedc5664cfae06bd543be8fc37e0a675463f11d4a3 /libs/core.bash.in
parentuse is_number (diff)
downloadeselect-4d23a57b2d4f2117bfc0307931455fbd6a479256.tar.gz
eselect-4d23a57b2d4f2117bfc0307931455fbd6a479256.tar.bz2
eselect-4d23a57b2d4f2117bfc0307931455fbd6a479256.zip
Updated do_action to display the correct usage message depending on how eclectic was invoked.
svn path=/trunk/; revision=101
Diffstat (limited to 'libs/core.bash.in')
-rw-r--r--libs/core.bash.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/core.bash.in b/libs/core.bash.in
index 695191b..eafb29f 100644
--- a/libs/core.bash.in
+++ b/libs/core.bash.in
@@ -88,6 +88,10 @@ do_action() {
ECLECTIC_MODULE_NAME="${action}"
ECLECTIC_COMMAND="${ECLECTIC_PROGRAM_NAME} ${ECLECTIC_MODULE_NAME}"
+
+ [[ ${ECLECTIC_BINARY_NAME##*/} != ${ECLECTIC_PROGRAM_NAME} ]] && \
+ ECLECTIC_COMMAND="${ECLECTIC_BINARY_NAME##*/}"
+
modfile=$( ec_find_module "${action}" )
(
source "$ECLECTIC_DEFAULT_ACTIONS" 2>/dev/null \