aboutsummaryrefslogtreecommitdiff
path: root/gbpm.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gbpm.sh')
-rwxr-xr-xgbpm.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/gbpm.sh b/gbpm.sh
index 50ff7a2..4a6fdd6 100755
--- a/gbpm.sh
+++ b/gbpm.sh
@@ -122,6 +122,12 @@ cmd_set() {
match="${dir}"
+ # exact match
+ if [[ "${dir##*/}" == "${1}" ]]; then
+ unset match_start
+ break
+ fi
+
# match from start of version is preferred. we assume the
# version is at the beginning of the directory name or
# immediately following a hyphen. this avoids unintuitive