Ignore:
Timestamp:
11/02/13 09:57:16 (11 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:
5c2bd8c
Parents:
f9bc298
Message:

When doing pbi_makeport, remove the trailing '/' from any port dir

File:
1 edited

Legend:

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

    r40e8efb r07c6fd2  
    75177517{ 
    75187518  local _lPortRaw="$1" 
    7519   local _lPort="/usr/ports/$1" 
     7519 
     7520  # Remove any trailing '/' 
     7521  echo $_lPortRaw | grep -q "/$" 
     7522  if [ $? -eq 0 ] ; then 
     7523     _lPortRaw="`echo $_lPortRaw | sed 's|/$||g'`" 
     7524  fi 
     7525 
     7526  local _lPort="/usr/ports/$_lPortRaw" 
    75207527 
    75217528  echo "Checking port: $_lPort" 
Note: See TracChangeset for help on using the changeset viewer.