Changeset 0d4cf8f


Ignore:
Timestamp:
10/09/13 09:31:38 (13 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
418f827
Parents:
c405e82
Message:

Improve the short-name detection for stat'ing a PBI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pbi-manager10/pbi-manager

    rf54df3c r0d4cf8f  
    401401find_pbi_namematch() 
    402402{ 
     403        _fLow="`echo ${1} | tr '[:upper:]' '[:lower:]' | sed 's| ||g'`" 
    403404        PBI_NAMEMATCH="" 
    404405        for i in `ls -d ${PBI_DBAPPDIR}/* 2>/dev/null` 
    405406        do 
    406407                if [ ! -e "$i/pbi_name" ] ; then continue ; fi 
    407                 if [ "`cat $i/pbi_name`" = "$1" ] ; then  
     408                _tLow="`cat $i/pbi_name | tr '[:upper:]' '[:lower:]' | sed 's| ||g'`" 
     409                if [ "$_tLow" = "$_fLow" ] ; then  
    408410                        PBI_NAMEMATCH="`basename ${i}`" 
    409411                        break 
Note: See TracChangeset for help on using the changeset viewer.