summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2014-12-27 12:58:26 +0100
committertv <tv@shackspace.de>2014-12-27 12:58:26 +0100
commit2fe055f86673816330b75b7e100c4a8391813bc6 (patch)
tree70a131d6f0fba1861e8d8ebbe3dd1c859ad67f7c
parent58f223427bbfc788d0ab8c0f81d045d98d4a3a12 (diff)
exeFromDir: return pname-version
-rwxr-xr-xload-env2
1 files changed, 1 insertions, 1 deletions
diff --git a/load-env b/load-env
index 222ea04..8decea3 100755
--- a/load-env
+++ b/load-env
@@ -71,7 +71,7 @@ exeFromDirName() {
case "$1" in
"$HOME/src/"[0-9A-Za-z-]*)
name=$(basename "$1")
- findexe "$name" | highest_version
+ basename $(findexe "$name" | highest_version) | sed s:^load-env-::
;;
"$HOME/src/"*) echo2 "bad basename: $(basename "$1")";;
*) echo2 "load-env only knows about stuff below ~/src";;