Skip to content

Commit e5d36db

Browse files
committed
Allow comments on the same line with port entries in blacklist
1 parent 3941b90 commit e5d36db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/share/poudriere/common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1744,7 +1744,7 @@ load_blacklist() {
17441744
fi
17451745
bfile=${b:+${b}-}blacklist
17461746
[ -f ${POUDRIERED}/${bfile} ] || continue
1747-
for port in `grep -h -v -E '(^[[:space:]]*#|^[[:space:]]*$)' ${POUDRIERED}/${bfile}`; do
1747+
for port in `grep -h -v -E '(^[[:space:]]*#|^[[:space:]]*$)' ${POUDRIERED}/${bfile} | sed -e 's|[[:space:]]*#.*||'`; do
17481748
case " ${BLACKLIST} " in
17491749
*\ ${port}\ *) continue;;
17501750
esac

0 commit comments

Comments
 (0)