diff options
author | Juergen Daubert <jue@jue.li> | 2015-09-25 11:40:50 +0200 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2015-09-25 11:40:50 +0200 |
commit | 84b8d3e662b7b387f699dbd82f0406a8eba5045e (patch) | |
tree | 4a8472d962563439ba0a112ff2cdcb539821cd90 | |
parent | 5963869762d078e249e3869ae9df9b23d6b5e8da (diff) | |
download | prt-utils-84b8d3e662b7b387f699dbd82f0406a8eba5045e.tar.gz prt-utils-84b8d3e662b7b387f699dbd82f0406a8eba5045e.tar.xz |
pkgsize: select port dirs from rsync and httpup and not sup files
-rw-r--r-- | pkgsize | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -39,9 +39,10 @@ function usage() { } function sizetodownload() { - - dirs=`cat /etc/ports/*sup* | grep prefix | sed s/.*=//g` - dir=`find $dirs -iname $portname 2>/dev/null | head -1 ` + + dirs="$(cat /etc/ports/*.rsync | sed -n '/destination=/s/.*=//p')" + dirs="$dirs $(cat /etc/ports/*.httpup | sed -n '/ROOT_DIR=/s/.*=//p')" + dir="$(find $dirs -iname $portname 2>/dev/null | head -1)" if [ -z $dir ]; then error "$portname not a port!" |