Lines 6578-6590
Link Here
|
6578 |
# -f specified |
6578 |
# -f specified |
6579 |
if [ -z "${LISTPORTS}" ]; then |
6579 |
if [ -z "${LISTPORTS}" ]; then |
6580 |
for file in ${LISTPKGS}; do |
6580 |
for file in ${LISTPKGS}; do |
|
|
6581 |
{ sed -e 's/[[:space:]]*#.*$//' | |
6581 |
while read origin; do |
6582 |
while read origin; do |
6582 |
# Skip blank lines and comments |
6583 |
# Skip blank lines and comments |
6583 |
[ -z "${origin%%#*}" ] && continue |
6584 |
[ -z "${origin%%#*}" ] && continue |
6584 |
# Remove excess slashes for mistakes |
6585 |
# Remove excess slashes for mistakes |
6585 |
origin="${origin#/}" |
6586 |
origin="${origin#/}" |
6586 |
echo "${origin%/}" |
6587 |
echo "${origin%/}" |
6587 |
done < "${file}" |
6588 |
done } < "${file}" |
6588 |
done |
6589 |
done |
6589 |
else |
6590 |
else |
6590 |
# Ports specified on cmdline |
6591 |
# Ports specified on cmdline |