diff options
| author | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2025-12-19 23:11:20 -0800 |
|---|---|---|
| committer | David Vazgenovich Shakaryan <dvshakaryan@gmail.com> | 2025-12-19 23:11:20 -0800 |
| commit | 224aa11c1854cf1742d30d2bd64a60ac78da3814 (patch) | |
| tree | 977b75692fedbcae9a74209139820f9328f93b89 /gbpm.sh | |
| parent | ab5766625df66a33101d96fe8b717a19707e6598 (diff) | |
| download | gbpm-224aa11c1854cf1742d30d2bd64a60ac78da3814.tar.gz gbpm-224aa11c1854cf1742d30d2bd64a60ac78da3814.tar.xz | |
exact match should always be chosen
Diffstat (limited to 'gbpm.sh')
| -rwxr-xr-x | gbpm.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |
