aboutsummaryrefslogtreecommitdiff
path: root/sbostuff.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sbostuff.sh')
-rw-r--r--sbostuff.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbostuff.sh b/sbostuff.sh
index 2c15284..1bbe5ba 100644
--- a/sbostuff.sh
+++ b/sbostuff.sh
@@ -99,10 +99,12 @@ EOF
cd "$( _cdsbexp $SBO_GITROOT/*/$1)"
_set_pkg
else
- echo "cdsb: no exact match, guessing dir" 1>&2
+ echo "cdsb: no exact match, guessing dir, partial matches:" 1>&2
+ ( cd $SBO_GITROOT ; ls -dC */$1* | sed 's,^, ,' )
dir="$( _cdsbexp $SBO_GITROOT/*/$1* )"
[ -z "$dir" ] && dir="$( _cdsbexp $SBO_GITROOT/*/*$1* )"
if [ -n "$dir" ]; then
+ echo "cdsb: guessed $( echo $dir | rev | cut -d/ -f1,2 | rev )" 1>&2
cd "$dir"
ret="$?"
[ "$ret" = "0" ] && _set_pkg