aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libs/default.eselect.in')
-rw-r--r--libs/default.eselect.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/libs/default.eselect.in b/libs/default.eselect.in
index a65cf36..fb0241a 100644
--- a/libs/default.eselect.in
+++ b/libs/default.eselect.in
@@ -16,7 +16,7 @@
# eselect. If not, see <http://www.gnu.org/licenses/>.
DESCRIPTION="No description available"
-VERSION="No version available"
+VERSION=""
DEFAULT_ACTION="usage"
describe_usage() {
@@ -85,7 +85,9 @@ describe_version() {
}
do_version() {
- echo "Version ${VERSION}"
+ [[ -n ${ESELECT_MODULE_NAME} && -n ${VERSION} ]] \
+ && echo "${ESELECT_MODULE_NAME}.eselect ${VERSION}"
+ echo "${ESELECT_PROGRAM_NAME} ${ESELECT_VERSION}"
}
describe_help() {