Skip to content

Instantly share code, notes, and snippets.

@bdrewery
Created March 19, 2021 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdrewery/863d60636cd93af0636f5f1feb879f24 to your computer and use it in GitHub Desktop.
Save bdrewery/863d60636cd93af0636f5f1feb879f24 to your computer and use it in GitHub Desktop.
diff --git src/share/poudriere/common.sh src/share/poudriere/common.sh
index c4d5673dd..96c431ee5 100644
--- src/share/poudriere/common.sh
+++ src/share/poudriere/common.sh
@@ -6783,8 +6783,11 @@ _listed_ports() {
{
# -f specified
if [ -z "${LISTPORTS}" ]; then
+ local _ignore_comments
+
for file in ${LISTPKGS}; do
- while mapfile_read_loop "${file}" origin; do
+ while mapfile_read_loop "${file}" origin \
+ _ignore_comments; do
# Skip blank lines and comments
[ -z "${origin%%#*}" ] && continue
# Remove excess slashes for mistakes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment