diff options
author | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-15 00:35:50 +0000 |
---|---|---|
committer | Aaron Walker <ka0ttic@gentoo.org> | 2005-05-15 00:35:50 +0000 |
commit | 4d23a57b2d4f2117bfc0307931455fbd6a479256 (patch) | |
tree | dc5664cfae06bd543be8fc37e0a675463f11d4a3 /libs/core.bash.in | |
parent | use is_number (diff) | |
download | eselect-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.in | 4 |
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 \ |